@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.js
CHANGED
|
@@ -2373,6 +2373,18 @@ class EnhancedSelect extends HTMLElement {
|
|
|
2373
2373
|
};
|
|
2374
2374
|
this._arrowContainer.addEventListener('click', this._boundArrowClick);
|
|
2375
2375
|
}
|
|
2376
|
+
// Input container click - focus input and open dropdown
|
|
2377
|
+
this._inputContainer.addEventListener('pointerdown', (e) => {
|
|
2378
|
+
const target = e.target;
|
|
2379
|
+
if (!this._config.enabled)
|
|
2380
|
+
return;
|
|
2381
|
+
if (target && target.closest('.dropdown-arrow-container'))
|
|
2382
|
+
return;
|
|
2383
|
+
if (!this._state.isOpen) {
|
|
2384
|
+
this._handleOpen();
|
|
2385
|
+
}
|
|
2386
|
+
this._input.focus();
|
|
2387
|
+
});
|
|
2376
2388
|
// Input container click - prevent event from reaching document listener
|
|
2377
2389
|
this._container.addEventListener('click', (e) => {
|
|
2378
2390
|
e.stopPropagation();
|
|
@@ -3438,6 +3450,7 @@ class EnhancedSelect extends HTMLElement {
|
|
|
3438
3450
|
const optionId = `${this._uniqueId}-option-${index}`;
|
|
3439
3451
|
if (this._optionRenderer) {
|
|
3440
3452
|
const rendered = this._optionRenderer(item, index, this._rendererHelpers);
|
|
3453
|
+
// Ensure the returned element has the correct classes and listeners
|
|
3441
3454
|
const optionElement = this._normalizeCustomOptionElement(rendered, {
|
|
3442
3455
|
index,
|
|
3443
3456
|
value: getValue(item),
|