@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.cjs +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.umd.js +13 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/src/components/angular-enhanced-select.d.ts +0 -90
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();
|
|
@@ -3440,6 +3452,7 @@ class EnhancedSelect extends HTMLElement {
|
|
|
3440
3452
|
const optionId = `${this._uniqueId}-option-${index}`;
|
|
3441
3453
|
if (this._optionRenderer) {
|
|
3442
3454
|
const rendered = this._optionRenderer(item, index, this._rendererHelpers);
|
|
3455
|
+
// Ensure the returned element has the correct classes and listeners
|
|
3443
3456
|
const optionElement = this._normalizeCustomOptionElement(rendered, {
|
|
3444
3457
|
index,
|
|
3445
3458
|
value: getValue(item),
|