Skip to content

Cannot use javascript MouseEvent on checkbox button in 4.5 #30849

@mrlife

Description

@mrlife

After upgrading from 4.4.1 to 4.5, the checkbox button no longer allows an onclick event on the checkbox. Reverting back to 4.4.1 fixes it. I believe the issue is from the event.preventDefault() (line 163) added in this pull request: #30388.

Here is a repro comparison with checkbox button test1 and regular checkbox test2.

4.4.1 (works): https://www.codeply.com/p/9DhKAgjsCP
4.5: https://www.codeply.com/p/v1lNDIWenF

OS: macOS 10.15.4
Browsers: Chrome 81.0.4044.138, Safari 13.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions