@teammodlr/ui-kit 2.3.14 → 2.3.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teammodlr/ui-kit",
3
- "version": "2.3.14",
3
+ "version": "2.3.15",
4
4
  "description": "",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.es.js",
@@ -248,16 +248,15 @@ export default defineComponent({
248
248
  setInputs();
249
249
  }
250
250
 
251
- const updateFromHex = () => {
251
+ const updateFromHex = (shouldEmit = true) => {
252
252
  if (hexInput.value === 'inherit') {
253
- if (modelModifiers.lazy) {
253
+ if (shouldEmit && modelModifiers.lazy) {
254
254
  emitModelValue();
255
255
  }
256
256
  return;
257
257
  }
258
258
 
259
259
  let hex = hexInput.value.replace("#", "");
260
- debugger;
261
260
  if (hex.length === 3) {
262
261
  hex = hex.split("").map(char => char + char).join("");
263
262
  }
@@ -268,7 +267,7 @@ export default defineComponent({
268
267
  }
269
268
 
270
269
  updateFromHSV(RGBToHSV(color.r, color.g, color.b), color.a);
271
- if (modelModifiers.lazy) {
270
+ if (shouldEmit && modelModifiers.lazy) {
272
271
  emitModelValue();
273
272
  }
274
273
  };
@@ -340,7 +339,7 @@ export default defineComponent({
340
339
  val = props.defaultColor ?? "#FFFFFF";
341
340
  }
342
341
  hexInput.value = val;
343
- updateFromHex();
342
+ updateFromHex(false);
344
343
  });
345
344
 
346
345
  const setThumbPosition = () => {
@@ -374,7 +373,7 @@ export default defineComponent({
374
373
  hexInput.value = props.color || props.modelValue;
375
374
  }
376
375
 
377
- updateFromHex();
376
+ updateFromHex(false);
378
377
  });
379
378
 
380
379