Closed bekasovoleg closed 5 years ago
1st dropdown on screenshot has uib-dropdown-menu
directive and works properly
https://github.com/ManageIQ/ui-components/blob/master/src/common/components/miqPfSort.html#L7
LGTM, thanks! :)
Looks like the original code only worked with angular-ui-bootstrap pre-1.0 (class support was removed in https://github.com/angular-ui/bootstrap/pull/4975).
angular-patternfly dropped 0.14 in https://github.com/patternfly/angular-patternfly/commit/ff80d4a41225fbf0e8488887f9c3dc71dc09f18b, but that's v4, we're using v3, which still depends on 0.14.
Both ui-classic and ui-service are now using the last angular-ui-bootstrap release - 2.5.6, and have been for about 2 years:
in ui-classic the version changed in https://github.com/ManageIQ/manageiq-ui-classic/pull/833 from 0.13 to whatever bower installs (presumably still 0.14 then) and got explicitly updated to 2.5.6 during the switch to npm - https://github.com/ManageIQ/manageiq-ui-classic/pull/4641
in ui-service, this changed from 0.14 to 2.* in https://github.com/ManageIQ/manageiq-ui-service/pull/363
We do have css for .uib-dropdown-menu
(and .uib-dropdown-menu-right
), so looks like the class has to stay too :+1:.
Searching for more, 'class='\''[^'\'']*uib'
or 'class="[^"]*uib'
in ui-service doesn't find anything,
in ui-components, this finds only:
src/toolbar/components/toolbar-menu/toolbar-list.html
2: <button type="button" uib-dropdown-toggle class="btn uib-dropdown-toggle btn-default"
10: <ul class="uib-dropdown-menu" uib-dropdown-menu role="menu">
src/site-switcher/site-switcher.html
5: <div uib-dropdown-menu class="uib-dropdown-menu uib-dropdown-menu-right" aria-labelledby="domain-switcher">
And in ui-classic, \.uib
also finds nothing.
So, looks like found the last of these :+1:
Fix issue #416