File tree Expand file tree Collapse file tree 1 file changed +9
-16
lines changed
src/BootstrapBlazor/wwwroot/modules Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -571,23 +571,16 @@ const hackPopover = (popover, css) => {
571571}
572572
573573const hackTooltip = function ( ) {
574- const tooltip = registerBootstrapBlazorModule ( 'Tooltip' , {
575- hooked : false ,
576- hackDispose : function ( ) {
577- if ( this . hooked === false ) {
578- this . hooked = true ;
579-
580- const originalDispose = bootstrap . Tooltip . prototype . dispose ;
581- bootstrap . Tooltip . prototype . dispose = function ( ) {
582- originalDispose . call ( this ) ;
583- // fix https://github.com/twbs/bootstrap/issues/37474
584- this . _activeTrigger = { } ;
585- this . _element = document . createElement ( 'noscript' ) ; // placeholder with no behavior
586- }
587- }
574+ const mock = ( ) => {
575+ const originalDispose = bootstrap . Tooltip . prototype . dispose ;
576+ bootstrap . Tooltip . prototype . dispose = function ( ) {
577+ originalDispose . call ( this ) ;
578+ // fix https://github.com/twbs/bootstrap/issues/37474
579+ this . _activeTrigger = { } ;
580+ this . _element = document . createElement ( 'noscript' ) ; // placeholder with no behavior
588581 }
589- } ) ;
590- tooltip . hackDispose ( ) ;
582+ }
583+ registerBootstrapBlazorModule ( 'Tooltip' , null , mock ) ;
591584}
592585
593586const setIndeterminate = ( object , state ) => {
You can’t perform that action at this time.
0 commit comments