@@ -85,7 +85,6 @@ class TablePropertiesForm {
85
85
this . borderForm = [ ] ;
86
86
this . saveButton = null ;
87
87
this . form = this . createPropertiesForm ( options ) ;
88
- this . createColorPicker ( ) ;
89
88
}
90
89
91
90
checkBtnsAction ( status : string ) {
@@ -159,7 +158,7 @@ class TablePropertiesForm {
159
158
const input = this . createColorInput ( child ) ;
160
159
const inputEl = input . querySelector ( "input" ) ;
161
160
if ( inputEl ) {
162
- this . setColorPicker ( inputEl ) ;
161
+ this . createColorPicker ( inputEl ) ;
163
162
}
164
163
container . appendChild ( input ) ;
165
164
return container ;
@@ -187,12 +186,12 @@ class TablePropertiesForm {
187
186
return container ;
188
187
}
189
188
190
- createColorPicker ( ) : void {
189
+ createColorPicker ( input : HTMLInputElement ) {
191
190
Coloris . init ( ) ;
192
191
Coloris ( {
192
+ el : input ,
193
193
clearButton : true ,
194
194
closeButton : true ,
195
- // @ts -ignore
196
195
onChange : ( color : string , input : HTMLElement ) : void => {
197
196
const propertyName = input . getAttribute ( "data-property" ) ?? "" ;
198
197
this . setAttribute ( propertyName , color , input ) ;
@@ -202,10 +201,6 @@ class TablePropertiesForm {
202
201
} ) ;
203
202
}
204
203
205
- setColorPicker ( input : HTMLInputElement ) {
206
- Coloris . coloris ( { el : input } ) ;
207
- }
208
-
209
204
createDropdown ( value : string ) {
210
205
const ownerDocument = this . tableMenus . quill . root . ownerDocument ;
211
206
const dropdown = ownerDocument . createElement ( "div" ) ;
0 commit comments