-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Replace alert in canvas_api_tutorial #34629
Conversation
Preview URLs (comment last updated: 2024-07-05 17:19:22) |
Please don't use the substring "fixes #xxx" in your description unless you are actually closing that issue, otherwise GH automatically links it. |
Thanks for your PR! Unfortunately the example still doesn't work. I wonder if this is actually because of the way it's triggering the redraw call: content/files/en-us/web/api/canvas_api/tutorial/applying_styles_and_colors/index.md Line 422 in d18e824
If I replace it with a more conventional click handler it seems to work fine. Also I think we can get rid of this regex: content/files/en-us/web/api/canvas_api/tutorial/applying_styles_and_colors/index.md Line 395 in d18e824
...and call
|
bfa407f
to
9355f54
Compare
I was only focusing on the replacement for the alert functionality, but you're right, the example is not working as is. I have updated the PR with your proposed changes, thanks! |
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.
👍 thank you @evelinabe !
Description
✍️ Replace alert in Web/API/Canvas_API/Tutorial/Applying_styles_and_colors
Motivation
❓ Current example is not working, there's an ongoing issue to replace all alerts. In this case I resolved it by removing the else statement with the alert and placing a minimum value on the form input, which is the standard way of handling minimum values.
Additional details
🔗 #7566
Related issues and pull requests
🔨 Fixes (Partly) #7566