hamzus-ui 0.0.170 → 0.0.172

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": "hamzus-ui",
3
- "version": "0.0.170",
3
+ "version": "0.0.172",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -186,6 +186,9 @@
186
186
  {style}
187
187
  {...$$restProps}
188
188
  >
189
+ {#if required && !selection}
190
+ <input type="text" name={name} {required} style="display: none;">
191
+ {/if}
189
192
  <div
190
193
  class="input {errorMessage ? ' error' : ''}"
191
194
  style="{variant == 'collapse'
@@ -244,7 +247,6 @@
244
247
  {placeholder}
245
248
  bind:value={search}
246
249
  bind:this={input}
247
- {required}
248
250
  disabled={isLoading ? true : disabled}
249
251
  />
250
252
  </div>