-
Notifications
You must be signed in to change notification settings - Fork 81
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
Switch: In popup menu stops working after 10.1.1 #1127
Comments
Having a hard time with this example. It worked the first time but then i went to latest. And then it will start but the page http://localhost:4200/ wont load. So not seeing this example not work. You can try a stackblitz? All i really need to see is it not working on the latest version. Also your markup looks a little different than the examples https://github.com/infor-design/enterprise-ng/blob/main/src/app/checkbox/checkbox.demo.html#L25-L28 so i would try that and use that in particular the field and the switch setting. What i would check for is if what you clicking on is the label and its not out of position or something. Could be related to this fe2e346 cc @bthharper |
Ok, update: i can see the issue on https://github.com/ahnpnl/soho-bug-repo/tree/switch-latest but still there is a difference in the markup. So maybe refactoring to that will work. Dont know why but its not recognizing the |
I tried using the new markup but still it doesn't solve the problem. The problem happens only when using switch inside popup menu. The switch works fine if putting outside popup menu. |
We found this issue which has a PR infor-design/enterprise#5652 we could try with that branch on? |
To reproduce in EP example, you can go to https://github.com/infor-design/enterprise/blob/main/app/views/components/button/example-menubutton.html#L16 and add another
and the problem can be reproduced with EP
I will try this in the meantime. |
Yeah i can see the issue is we added preventDefault for menu clicks so that in Angular they wouldnt navigate. So its taking the switch click away. I think its fixable with an exception checking for switch. But popupmenu should probably just be for menus. So do try popdown meanwhile |
Ok I found the issue. The issue is caused by this line https://github.com/infor-design/enterprise/blob/4.55.3/src/components/popupmenu/popupmenu.js#L1026 and this line has been removed in infor-design/enterprise@cdf007e#diff-a13b4c7e75becf0d4ac1a993ae44c33986e95c1b864f35a1eb305509c2e64724 which fixes this issue. The change is available in Feel free to close this issue. It would be nice if there can be a release for 10.6.x to fix this problem. |
ok great. regarding the popdown. you would have to just format the height and width with css. It is maybe the right component for this. But good we fixed this issue. We will probably be releasing 10.7.x in about a week and im not 100% sure which change set i would patch back to 10.6.x. Can you wait for 10.7.x? If not I can probably track it down.... |
Thanks for the information. I will tell my colleagues to wait for 10.7.x. Our team only has this week to perform an upgrade so I guess that's not possible from your side for a patch to 10.6.x |
I could but this gets a little confusing because after infor-design/enterprise@cdf007e#diff-a13b4c7e75becf0d4ac1a993ae44c33986e95c1b864f35a1eb305509c2e64724 we did infor-design/enterprise#5652 as that fix broke a lot of things If you test on main branch and that works i guess i could just components/popupmenu/popupmenu.js back to 4.55 (10.6.x). But make sure that works on main? that would be the main thing. A patch takes me about 30 min of work... |
we are not in a hurry so any ways are fine :) |
ok good. lets wait. Also because of what i just said i wasnt sure if it was actually fixed because i reverted that fix. So I made a fix on this PR https://github.com/infor-design/enterprise/pull/5674/files |
This issue is now resolved. |
Describe the bug
Switch no longer works in
soho-popupmenu
after version 10.1.1 The switch can't be toggled on/off anymore.To Reproduce
Steps to reproduce the behavior:
ng serve
Expected behavior
The switch should be toggled.
Version
Screenshots
N.A.
Platform
Additional context
N.A.
The text was updated successfully, but these errors were encountered: