gd-bs 6.7.7 → 6.7.8

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.
@@ -306,12 +306,15 @@ var _FloatingUI = /** @class */ (function () {
306
306
  if (_this._elArrow) {
307
307
  var arrowX = middlewareData.arrow.x;
308
308
  var arrowY = middlewareData.arrow.y;
309
+ var placement = (((_c = middlewareData.offset) === null || _c === void 0 ? void 0 : _c.placement) || _this._options.placement).split('-')[0];
309
310
  var side = {
310
311
  top: 'bottom',
311
312
  right: 'left',
312
313
  bottom: 'top',
313
314
  left: 'right'
314
- }[(((_c = middlewareData.offset) === null || _c === void 0 ? void 0 : _c.placement) || _this._options.placement).split('-')[0]];
315
+ }[placement];
316
+ // Set the placement
317
+ _this._elContent.setAttribute("data-placement", placement);
315
318
  // Update the location
316
319
  Object.assign(_this._elArrow.style, (_b = {
317
320
  left: arrowX != null ? "".concat(arrowX, "px") : '',