fix: MultiSelect backspace on input
- Dont clear values if backspace is pressed on input
This commit is contained in:
parent
1814dd9ef4
commit
caabe9b87f
1 changed files with 3 additions and 0 deletions
|
|
@ -61,6 +61,9 @@ frappe.ui.form.ControlMultiSelectList = frappe.ui.form.ControlData.extend({
|
|||
});
|
||||
|
||||
this.$list_wrapper.on('keydown', e => {
|
||||
if ($(e.target).is('input')) {
|
||||
return;
|
||||
}
|
||||
if (e.key === 'Backspace') {
|
||||
this.set_value([]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue