-
Notifications
You must be signed in to change notification settings - Fork 8
Enable error message when entering an item barcode without a patron barcode #709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Kudos, SonarCloud Quality Gate passed! |
zburke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done!
Do you have any insight into what changed that caused this to stop working/this event to stop bubbling? I understand what this change does, but not why it was suddenly necessary.
|
@zburke actually we tried to find what caused this to stop working but did not find it. As far as I remember But I agree it would be great to find what caused this to stop working. |
|
@pavelspichonak, I totally understand and I appreciate you taking the extra time to provide the history. "This used to work, this stopped working, wait how did this ever work, I don't have time to investigate further but at least it works again now" is an all-too-common storyline in programming 😆 . |
|
@zburke fortunately we decided to be better and found what caused this to stop working :) This pull request caused this to stop working. |
|
@zburke looks like this issue was fixed in react 17.0.0 |
|
Ah, yes, this all snaps into focus. I now recall that the first time we tried to migrate to React v17 ~one year ago, we had to back out because of changes to event handling/bubbling. (Many bugs are linked to STRIPES-722 if you are interested in more archaeology.) Rephrasing (so I can repeat it to myself to confirm my understanding), old code exploited a bug/loophole in React v16, and that loophole was closed in React 17. Thus, we needed to adjust our code here. With so many changes between the React 17 and update in September and now, I'm impressed that you were able to identify the cause so concisely! Nice detective work, @pavelspichonak 🕵️ ! |








Purpose
Enable error message when entering an item barcode without a patron barcode
Refs
UICHKOUT-770
Screenshots