Skip to content

Commit

Permalink
getFocusableElements p-disabled support
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Oct 27, 2021
1 parent 2b4ab89 commit 1859368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/dom/domhandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ export class DomHandler {
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]:not(.p-disabled))`
);

let visibleFocusableElements = [];
Expand Down

1 comment on commit 1859368

@stiekemaj
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the last part of the selector should be :not([hidden]):not(.p-disabled) instead of :not([hidden]:not(.p-disabled)). See also #10859

Please sign in to comment.