fix: select field condition to check if value is selected

(cherry picked from commit 97f7f6345b)
This commit is contained in:
prssanna 2021-03-11 18:55:11 +05:30 committed by mergify-bot
parent b1df2730cc
commit 970e1421db

View file

@ -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);
}
});