Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Restrict removal of items on Backspace #859

Open
amit-m opened this issue May 16, 2018 · 0 comments
Open

Restrict removal of items on Backspace #859

amit-m opened this issue May 16, 2018 · 0 comments

Comments

@amit-m
Copy link

amit-m commented May 16, 2018

In Angular 1.x, I added some custom code to handle this requirement, here is the code snippet

$scope.hackForBackspace = function(){
// if backspace return false
if(event.keyCode == 8){return false;}
}

This works fine in Chrome, but does not work in FF and IE.

Always 'Error: event is not defined' is coming in console log.

Even I tried to pass on-tag-removing="hackForBackspace($event);" - that also not working.

Please help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant