|
@@ -201,16 +201,6 @@ const ColorInput = React.forwardRef(
|
201
|
201
|
},
|
202
|
202
|
ref,
|
203
|
203
|
) => {
|
204
|
|
- // console.log("ColorInput 0 dev_xcal")
|
205
|
|
-
|
206
|
|
- if (document.readyState!="complete" && window.tmp_hooks){
|
207
|
|
- tmp_hooks.ColorInput_args={
|
208
|
|
- color,
|
209
|
|
-onChange,
|
210
|
|
-label,
|
211
|
|
- }
|
212
|
|
- }
|
213
|
|
- // console.log("dev ColorInput 0",window.indexLoadedTime,document.readyState)
|
214
|
204
|
const [innerValue, setInnerValue] = React.useState(color);
|
215
|
205
|
const inputRef = React.useRef(null);
|
216
|
206
|
|
|
@@ -227,22 +217,10 @@ label,
|
227
|
217
|
if (color) {
|
228
|
218
|
onChange(color);
|
229
|
219
|
}
|
230
|
|
- // console.log("changeColor!")
|
231
|
|
- // window.tdx3 = {onChange}
|
232
|
220
|
setInnerValue(value);
|
233
|
221
|
},
|
234
|
222
|
[onChange],
|
235
|
223
|
);
|
236
|
|
- /*
|
237
|
|
- console.log("COLOR INPUT!")
|
238
|
|
- window.tdx = {
|
239
|
|
- changeColor,
|
240
|
|
- setInnerValue,
|
241
|
|
- innerValue,
|
242
|
|
- onChange,
|
243
|
|
- getColor,
|
244
|
|
- }
|
245
|
|
- */
|
246
|
224
|
|
247
|
225
|
return (
|
248
|
226
|
<label className="color-input-container">
|
|
@@ -260,7 +238,7 @@ label,
|
260
|
238
|
);
|
261
|
239
|
},
|
262
|
240
|
);
|
263
|
|
-window.ColorInput_orig = ColorInput
|
|
241
|
+
|
264
|
242
|
export const ColorPicker = ({
|
265
|
243
|
type,
|
266
|
244
|
color,
|