mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 11:05:45 +02:00
FIX: _ui.hover
This commit is contained in:
parent
4da71d8d4e
commit
6328b81ced
2
dist/js/app.js
vendored
2
dist/js/app.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/app.js.map
vendored
2
dist/js/app.js.map
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate",
|
||||
"version": "1.6.5",
|
||||
"version": "1.6.6",
|
||||
"author": "Tony Air <tony@twma.pro>",
|
||||
"license": "MIT",
|
||||
"description": "This UI Kit allows you to build Bootstrap 4 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",
|
||||
|
@ -80,6 +80,7 @@ const HoverUI = (($) => {
|
||||
}
|
||||
});
|
||||
|
||||
$el.data(NAME, ui);
|
||||
$triger.addClass(`${NAME}-active`);
|
||||
}
|
||||
|
||||
@ -156,6 +157,12 @@ const HoverUI = (($) => {
|
||||
const $el = $(e.currentTarget);
|
||||
const $parent = $el.parent('.dropdown');
|
||||
|
||||
// hide siblings
|
||||
$parent
|
||||
.parent()
|
||||
.find('.dropdown, .dropdown-menu')
|
||||
.removeClass('show');
|
||||
|
||||
if ($parent.hasClass('show')) {
|
||||
$parent.removeClass('show');
|
||||
$parent.find('.dropdown-menu').removeClass('show');
|
||||
|
Loading…
Reference in New Issue
Block a user