@smilodon/core 1.3.10 → 1.3.11

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/dist/index.cjs CHANGED
@@ -2375,6 +2375,18 @@ class EnhancedSelect extends HTMLElement {
2375
2375
  };
2376
2376
  this._arrowContainer.addEventListener('click', this._boundArrowClick);
2377
2377
  }
2378
+ // Input container click - focus input and open dropdown
2379
+ this._inputContainer.addEventListener('pointerdown', (e) => {
2380
+ const target = e.target;
2381
+ if (!this._config.enabled)
2382
+ return;
2383
+ if (target && target.closest('.dropdown-arrow-container'))
2384
+ return;
2385
+ if (!this._state.isOpen) {
2386
+ this._handleOpen();
2387
+ }
2388
+ this._input.focus();
2389
+ });
2378
2390
  // Input container click - prevent event from reaching document listener
2379
2391
  this._container.addEventListener('click', (e) => {
2380
2392
  e.stopPropagation();