Skip to content

onChange event doesn't fire when onInput is also registered on Mac + Safari #1146

@mattbrailsford

Description

@mattbrailsford

Which exact UI Library version are you using? For example: 1.0.1 - don't just write v1.

16.0.0

Bug summary

It looks like onChange events in Safari don't fire reliably when an onInput handler is also registered and so inputs that use onChange to trigger other actions don't occur.

Specifics

This has come from an Umbraco Commerce issue here umbraco/Umbraco.Commerce.Issues#713

In investigating this issue we've found that the onChange event is unreliable in Safari. We have put a fix our end for now, but I think it would make sense for the uui-input elements to compensate. Inputs could implement on focus and blur event handlers to see if values have changed and then fire a change event accordingly.

Steps to reproduce

Implement a uui-input element with an input and change event. Test on Mac Safari and see the change event doesn't fire.

Expected result / actual result

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageThis issue has not been tested by a team member yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions