Skip to content

Prevent default disabled buttons and links.

username-removed-502136 requested to merge preventdefault-disabled-buttons into master

What does this MR do?

Prevents default action for disabled buttons and links. If the element has .btn and .disabled at the same time, its default action will be prevented.

Are there points in the code the reviewer needs to double check?

Yes. Is there a better way to do that?

Why was this MR needed?

Right now we can click disabled links and it cause some troubles like in #18079 (closed).

What are the relevant issue numbers?

Fixes #18079 (closed)

Screenshots (if relevant)

disabled-click

Does this MR meet the acceptance criteria?

Merge request reports