Question / Discussion: Break all native input
and change
events?
#1420
Replies: 2 comments 1 reply
-
What are your use cases? Do you use the native event to manually control state? Do you need to prevent the default behavior? |
Beta Was this translation helpful? Give feedback.
-
The main use case is to keep track of the changes in a model data structure. For this we use the Because of the current inconsistency it's unclear which events are forwarded and which are dispatched without looking at the documentation. Relying on the name alone doesn't tell if the event is native or not. |
Beta Was this translation helpful? Give feedback.
-
As recently done in #1065 the native
input
andchange
events were replaced by custom events. In one of our codebases we heavily rely on the native events. This breaking change requires a major refactoring. We also have cases where we need some information from the native event, which is not possible anymore.You mentioned in #977 (comment) to favor the custom events over native events. That's fair enough as a best practice, but I didn't expect you to drop them altogether 😅. I believe that native events should still be available. Carbon react supports the native events too (i.e. exposes the native event properties).
Beta Was this translation helpful? Give feedback.
All reactions