File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
src/BootstrapBlazor/Components/Button Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1- import Data from "../../modules/data.js"
1+ import { registerBootstrapBlazorModule } from "../../modules/utility.js"
2+ import Data from "../../modules/data.js"
23import EventHandler from "../../modules/event-handler.js"
34
45export function init ( id ) {
@@ -21,6 +22,19 @@ export function init(id) {
2122
2223 EventHandler . on ( document , 'click' , e => closePopup ( e ) ) ;
2324 }
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+
2438}
2539
2640export function update ( id ) {
You can’t perform that action at this time.
0 commit comments