Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 3a9f4fa

Browse files
author
Austin McDaniel
committed
Fix for backspace allowing removal of locked selections
1 parent 3bd3d4b commit 3a9f4fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/select.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@
381381
// Remove item from multiple select
382382
ctrl.removeChoice = function(index){
383383
var removedChoice = ctrl.selected[index];
384+
385+
// if the choice is locked, can't remove it
386+
if(removedChoice._uiSelectChoiceLocked) return;
387+
384388
var locals = {};
385389
locals[ctrl.parserResult.itemName] = removedChoice;
386390

0 commit comments

Comments
 (0)