fix: Set placeholder value before creating input

(cherry picked from commit ca9cafb999)
This commit is contained in:
Suraj Shetty 2021-04-29 18:13:18 +05:30 committed by mergify-bot
parent a04b3a280d
commit b678eb01ee

View file

@ -2,11 +2,11 @@ import Picker from '../../color_picker/color_picker';
frappe.ui.form.ControlColor = frappe.ui.form.ControlData.extend({
make_input: function () {
this.df.placeholder = this.df.placeholder || __('Choose a color');
this._super();
this.make_color_input();
},
make_color_input: function () {
this.df.placeholder = __('Choose a color');
let picker_wrapper = $('<div>');
this.picker = new Picker({
parent: picker_wrapper[0],