-
Notifications
You must be signed in to change notification settings - Fork 899
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
Ensure that only one filter dropdown gets rendered per action type #11893
Ensure that only one filter dropdown gets rendered per action type #11893
Conversation
Oh wow, that's a fun bug, thanks :). The cause is the new patternfly version (3.8 or 3.9 IIRC) - they changed the selectpicker element - previously selectpicker init would turn a select into essentially Which means the Right Fix is probably more along the lines of updating
... in the (Or, if that sounds wrong for some reason, another alternative would be to put the ((Or, we could merge this one for now, but I don't like having both ng-if and ng-switch at the same time..)) |
So technically this is a selectpicker bug. I would rather have them fix this. The Hence I vote for the |
Oh not quite. It's in how we're using selectpicker from angular, the JS only implementation does not have the problem in pure-JS context. (And the patternfly angular directive does handle it fine.) That said, I'm OK with the ng-if approach, if you remove the switch :) |
Ok, a couple things you should know:
If something worked before, and is not working anymore, then I consider it to be a bug...unless they replaced the logic with a better approach -- which does not seem to be the case here. |
Ha, yup, you're completely right, it's a bug in You're also right that So we need to fix it in patternfly, and then .. well, your decision, I think doing the same fix for (Discussion of the original selectpicker change is in #10509) angular-patternfly PR: patternfly/angular-patternfly#329 |
5581a31
to
cfa757e
Compare
@AparnaKarve thanks! Works like a charm, merging :) Introduced in #10509 - adding |
…ropdown Ensure that only one filter dropdown gets rendered per action type (cherry picked from commit 3947eb2)
Euwe Backport details: $ git log -1
commit cccccf420742ce69b33773f66d05ed3f33ef715a
Author: Martin Hradil <himdel@seznam.cz>
Date: Mon Oct 17 12:36:14 2016 +0000
Merge pull request #11893 from AparnaKarve/fix_schedule_filter_type_dropdown
Ensure that only one filter dropdown gets rendered per action type
(cherry picked from commit 3947eb22d98b7eed4135b50d3f95b6d81b67c6a6) |
When the
Action
dropdown values are changed one after the other, say, fromVM Analysis
toTemplate Analysis
toHost Analysis
, theFilter
dropdown from the earlierAction
dropdown value still lingers around.See the below screenshot :
This PR addresses the above bug.
IIRC, this used to work before so I'm going to attribute this behavior to the latest version of angular?(maybe)