-
Notifications
You must be signed in to change notification settings - Fork 187
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
dijit popup menus fail on current Chrome Beta (107) #201
Comments
We'll likely need to rename this, unless the Chrome team determines that this breaks enough existing websites such that they suggest renaming the feature. |
Chrome stable 107 does not show the issue. How do we move forward? No way of know if they will rename the feature, correct? Does dijit just need to change? Looks like they are planning to ship with version 110 (~3 months away based on every four weeks for major releases.). What would be the suggested new marker attribute? Maybe |
I can't reproduce it, but The thing is though that I don't see any attribute named |
OK, but where is this It does sound vaguely familiar though, I wonder if I removed it but you still have it because you're using an old version of the code. |
Looks like when creating a new PopupMenuItem and passing an object with popup property, Example shown here in dijit's test: https://github.com/dojo/dijit/blob/master/tests/test_Menu.html#L78 When widget is being constructed, the WidgetBase.create function calls _applyAttributes: Line 464 in 8ab4cdc
The loop at the bottom of the function loops over params and creates attributes. Lines 504 to 506 in 8ab4cdc
"popup" is one of the keys in params. |
Hmm, OK, but I actually was looking for the code that calls that code, somewhere where "popup" is actually written. |
The problem is here:
|
Well, but I actually was looking for the code that calls that code, somewhere where "popup" is actually written. |
Example code was mentioned in the first comment: The issue is when the "popup" is used in constructor props |
Ah sorry, I see now. So that's hard to change (without breaking backwards compatibility) because it's part of the API. Maybe would need to deprecate it (but keep supporting it) and create a new property that does the same thing. |
Menus with popup children fail to show correctly, and warnings are seen in the console output on some installs of Chrome Beta channel (currently 107).
Download Chrome Beta channel (currently 107) for Windows (maybe other OSs?) and load the following tutorial:
https://dojotoolkit.org/documentation/tutorials/1.10/menus/demo/nestedProgMenu.html
Some machines work fine, however some break as described above. I assume it is Chrome testing on a certain percent of machines? I believe you will only see the issue if the following returns true in the Chrome Beta console window:
I believe it is due to this feature currently being tested: https://chromestatus.com/feature/5463833265045504
Is this a bug Chrome will fix or does dijit need to use a different attribute?
The text was updated successfully, but these errors were encountered: