Skip to content

Commit f95082c

Browse files
committed
fix(server): calendar tooltip positioning (closes #5675)
1 parent e94b5ac commit f95082c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

apps/client/src/widgets/buttons/right_dropdown_button.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)