We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 322a21d commit d3f3b37Copy full SHA for d3f3b37
1 file changed
src/BootstrapBlazor/Components/Button/DialButton.razor.js
@@ -1,4 +1,5 @@
1
-import Data from "../../modules/data.js"
+import { registerBootstrapBlazorModule } from "../../modules/utility.js"
2
+import Data from "../../modules/data.js"
3
import EventHandler from "../../modules/event-handler.js"
4
5
export function init(id) {
@@ -21,6 +22,19 @@ export function init(id) {
21
22
23
EventHandler.on(document, 'click', e => closePopup(e));
24
}
25
+
26
+ const module = registerBootstrapBlazorModule('DialButton', {
27
+ hooked: false,
28
+ registerClosePopupHandler: function () {
29
+ if (this.hooked === false) {
30
+ this.hooked = true;
31
32
+ EventHandler.on(document, 'click', e => closePopup(e));
33
+ }
34
35
+ });
36
+ module.registerClosePopupHandler();
37
38
39
40
export function update(id) {
0 commit comments