We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2df6d2c commit c1589a2Copy full SHA for c1589a2
core/src/components/picker-column/picker-column.tsx
@@ -376,7 +376,11 @@ export class PickerColumn implements ComponentInterface {
376
* elementsFromPoint can returns multiple elements
377
* so find the relevant picker column option if one exists.
378
*/
379
- const newActiveElement = elementsAtPoint.find((el) => el.tagName === 'ION-PICKER-COLUMN-OPTION');
+ let newActiveElement = elementsAtPoint.find((el) => el.tagName === 'ION-PICKER-COLUMN-OPTION');
380
+
381
+ if (!newActiveElement) {
382
+ newActiveElement = referenceNode.elementFromPoint(centerX, centerY) as HTMLIonPickerColumnOptionElement;
383
+ }
384
385
if (activeEl !== undefined) {
386
this.setPickerItemActiveState(activeEl, false);
0 commit comments