fix: select field condition to check if value is selected
This commit is contained in:
parent
4246f8f3d8
commit
97f7f6345b
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ frappe.ui.form.ControlSelect = frappe.ui.form.ControlData.extend({
|
|||
}
|
||||
},
|
||||
toggle_placeholder: function() {
|
||||
const input_set = Boolean(this.$input.val());
|
||||
const input_set = Boolean(this.$input.find('option:selected').text());
|
||||
this.$wrapper.find('.placeholder').toggle(!input_set);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue