File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
apps/client/src/widgets/buttons Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -47,18 +47,17 @@ export default class RightDropdownButtonWidget extends BasicWidget {
4747 }
4848 } ) ;
4949
50- this . $tooltip = this . $widget . find ( ".tooltip-trigger" ) . attr ( "title" , this . title ) ;
51- this . tooltip = new Tooltip ( this . $tooltip [ 0 ] , {
50+ this . $widget . attr ( "title" , this . title ) ;
51+ this . tooltip = Tooltip . getOrCreateInstance ( this . $widget [ 0 ] , {
52+ trigger : "hover" ,
5253 placement : handleRightToLeftPlacement ( this . settings . titlePlacement ) ,
5354 fallbackPlacements : [ handleRightToLeftPlacement ( this . settings . titlePlacement ) ]
5455 } ) ;
5556
5657 this . $widget
5758 . find ( ".right-dropdown-button" )
5859 . addClass ( this . iconClass )
59- . on ( "click" , ( ) => this . tooltip . hide ( ) )
60- . on ( "mouseenter" , ( ) => this . tooltip . show ( ) )
61- . on ( "mouseleave" , ( ) => this . tooltip . hide ( ) ) ;
60+ . on ( "click" , ( ) => this . tooltip . hide ( ) ) ;
6261
6362 this . $widget . on ( "show.bs.dropdown" , async ( ) => {
6463 await this . dropdownShown ( ) ;
You can’t perform that action at this time.
0 commit comments