8 karma · joined Oct 3, 2023 (3y ago) · 4 submissions
comment 2y ago · link · parent
[1] https://a11ysupport.io/tests/html_label_element_implicit
comment 2y ago · link · parent
I tried adding a transition to a dialog box in React sometime back. When the user tries to delete some data, a confirmation dialog shows up. It disappears(with CSS transitions) when the user confirms. Deletion happens before transitions are complete and the user sees a different, unexpected state in the dialog for a flicker of time.
This is solved if all the data inside the dialog is actually a deep copy of state.
If this was not done via react, we could've prevented the dialog content from being bound to the state
Should UI really be a function of states?