提交 d22ffc25 编写于 作者: C Catouse

* support delete selection by hotkey "backspace" in picker.

上级 0604ad4e
......@@ -14,7 +14,6 @@
/**
* TODO:
* * Option: deleteByBackspace
* * Option: sortMultiValuesByDnd
* * 优化展开时滚动到选中项体验
*/
......@@ -281,6 +280,8 @@
that.activeOption($prevOption);
}
e.preventDefault();
} else if (options.deleteByBackspace && that.multi && (key === 'Backspace' || key === 8) && that.value && that.value.length) {
that.deselect(that.value[that.value.length - 1]);
}
});
}
......
此差异已折叠。
......@@ -7,7 +7,6 @@
/**
* TODO:
* * Option: deleteByBackspace
* * Option: sortMultiValuesByDnd
* * 优化展开时滚动到选中项体验
*/
......@@ -274,6 +273,8 @@
that.activeOption($prevOption);
}
e.preventDefault();
} else if (options.deleteByBackspace && that.multi && (key === 'Backspace' || key === 8) && that.value && that.value.length) {
that.deselect(that.value[that.value.length - 1]);
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册