lau-ecom-design-system 1.0.29 → 1.0.30

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.
@@ -1490,6 +1490,13 @@ var script$l = /*@__PURE__*/defineComponent({
1490
1490
  emit('update:modelValue', '');
1491
1491
  emit('clear');
1492
1492
  };
1493
+ const handleSearch = () => {
1494
+ if (inputValue.value) {
1495
+ emit('search', inputValue.value);
1496
+ inputValue.value = '';
1497
+ emit('update:modelValue', '');
1498
+ }
1499
+ };
1493
1500
  const handleKeyUp = event => {
1494
1501
  if (event.key === 'Enter' && inputValue.value) {
1495
1502
  emit('search', inputValue.value);
@@ -1524,11 +1531,7 @@ var script$l = /*@__PURE__*/defineComponent({
1524
1531
  }, null, 8 /* PROPS */, ["width", "height", "class"])], 2 /* CLASS */)) : createCommentVNode("v-if", true), createCommentVNode(" Icono de búsqueda "), createElementVNode("button", {
1525
1532
  type: "button",
1526
1533
  class: normalizeClass(['dsEcom-absolute dsEcom-right-0 dsEcom-top-0 dsEcom-bottom-0', 'dsEcom-flex dsEcom-items-center dsEcom-justify-center', 'dsEcom-px-4', 'dsEcom-transition-colors dsEcom-duration-300', 'dsEcom-rounded-r-lg', _ctx.searchIconBgClass, 'hover:dsEcom-opacity-80']),
1527
- onClick: _cache[3] || (_cache[3] = () => {
1528
- emit('search', inputValue.value.value);
1529
- inputValue.value.value = '';
1530
- emit('update:modelValue', '');
1531
- })
1534
+ onClick: handleSearch
1532
1535
  }, [createVNode(unref(script$r), {
1533
1536
  width: _ctx.searchIconSize.width,
1534
1537
  height: _ctx.searchIconSize.height,