Got caught out in React for the first time in a while. React events bubble up through the component tree, *not* the DOM tree. An important difference when working with portals
Caused an embarrassing bug by assuming the latter and not having tests to cover the expected behaviour
November 25, 2024 at 6:02 PM
Got caught out in React for the first time in a while. React events bubble up through the component tree, *not* the DOM tree. An important difference when working with portals
Caused an embarrassing bug by assuming the latter and not having tests to cover the expected behaviour