mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(picker-column-internal): blurring picker does not throw error (#26560)
Resolves #26559
This commit is contained in:
@ -254,12 +254,13 @@ export class PickerColumnInternal implements ComponentInterface {
|
|||||||
const centerX = bbox.x + bbox.width / 2;
|
const centerX = bbox.x + bbox.width / 2;
|
||||||
const centerY = bbox.y + bbox.height / 2;
|
const centerY = bbox.y + bbox.height / 2;
|
||||||
|
|
||||||
const activeElement = el.shadowRoot!.elementFromPoint(centerX, centerY) as HTMLButtonElement;
|
const activeElement = el.shadowRoot!.elementFromPoint(centerX, centerY) as HTMLButtonElement | null;
|
||||||
|
|
||||||
if (activeEl !== null) {
|
if (activeEl !== null) {
|
||||||
activeEl.classList.remove(PICKER_COL_ACTIVE);
|
activeEl.classList.remove(PICKER_COL_ACTIVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (activeElement.disabled) {
|
if (activeElement === null || activeElement.disabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user