gd-bs 6.6.96 → 6.6.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114,7 +114,7 @@ var _FloatingUI = /** @class */ (function () {
114
114
  }, 10);
115
115
  });
116
116
  // Create the scroll event
117
- document.addEventListener("scroll", function (ev) {
117
+ window.addEventListener("scroll", function (ev) {
118
118
  // Wait for the other events to run
119
119
  setTimeout(function () {
120
120
  // Parse the events
@@ -99,8 +99,8 @@ var _Popover = /** @class */ (function (_super) {
99
99
  this._floatingUI = (0, floating_ui_1.FloatingUI)({
100
100
  elContent: this._elContent,
101
101
  elTarget: this.el,
102
- options: __assign({ arrow: true, flip: true, shift: { padding: 5 }, trigger: "focus" }, this.props.options),
103
- placement: this.props.placement,
102
+ options: __assign({ arrow: true, flip: true, shift: { padding: 5 }, trigger: "mouse" }, this.props.options),
103
+ placement: this.props.placement || floating_ui_1.FloatingUIPlacements.Top,
104
104
  show: this.props.show,
105
105
  theme: this.props.type
106
106
  });
@@ -243,9 +243,9 @@ var _Tooltip = /** @class */ (function (_super) {
243
243
  className: "floating-tooltip",
244
244
  elContent: this._elContent,
245
245
  elTarget: this.el,
246
- options: __assign({ arrow: true, flip: true, shift: { padding: 5 }, trigger: "focus" }, this.props.options),
246
+ options: __assign({ arrow: true, flip: true, shift: { padding: 5 }, trigger: "mouse" }, this.props.options),
247
247
  show: this.props.show,
248
- placement: this.props.placement,
248
+ placement: this.props.placement || floating_ui_1.FloatingUIPlacements.Top,
249
249
  theme: this.props.type
250
250
  });
251
251
  };