fix: Set placeholder value before creating input
(cherry picked from commit ca9cafb999)
This commit is contained in:
parent
a04b3a280d
commit
b678eb01ee
1 changed files with 1 additions and 1 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue