@smilodon/core 1.3.10 → 1.3.12

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.umd.js CHANGED
@@ -2379,6 +2379,18 @@
2379
2379
  };
2380
2380
  this._arrowContainer.addEventListener('click', this._boundArrowClick);
2381
2381
  }
2382
+ // Input container click - focus input and open dropdown
2383
+ this._inputContainer.addEventListener('pointerdown', (e) => {
2384
+ const target = e.target;
2385
+ if (!this._config.enabled)
2386
+ return;
2387
+ if (target && target.closest('.dropdown-arrow-container'))
2388
+ return;
2389
+ if (!this._state.isOpen) {
2390
+ this._handleOpen();
2391
+ }
2392
+ this._input.focus();
2393
+ });
2382
2394
  // Input container click - prevent event from reaching document listener
2383
2395
  this._container.addEventListener('click', (e) => {
2384
2396
  e.stopPropagation();
@@ -3444,6 +3456,7 @@
3444
3456
  const optionId = `${this._uniqueId}-option-${index}`;
3445
3457
  if (this._optionRenderer) {
3446
3458
  const rendered = this._optionRenderer(item, index, this._rendererHelpers);
3459
+ // Ensure the returned element has the correct classes and listeners
3447
3460
  const optionElement = this._normalizeCustomOptionElement(rendered, {
3448
3461
  index,
3449
3462
  value: getValue(item),