2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00
This commit is contained in:
XhmikosR
2019-04-18 14:47:52 +03:00
committed by GitHub
parent 5c5b15a077
commit 091aa1e9fd
48 changed files with 2632 additions and 2060 deletions
+8 -2
View File
@@ -188,11 +188,17 @@
});
EventHandler.on(document, Event.FOCUS_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
var button = SelectorEngine.closest(event.target, Selector.BUTTON);
button.classList.add(ClassName.FOCUS);
if (button) {
button.classList.add(ClassName.FOCUS);
}
});
EventHandler.on(document, Event.BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
var button = SelectorEngine.closest(event.target, Selector.BUTTON);
button.classList.remove(ClassName.FOCUS);
if (button) {
button.classList.remove(ClassName.FOCUS);
}
});
/**
* ------------------------------------------------------------------------