@keenthemes/ktui 1.0.21 → 1.0.22

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.
package/dist/ktui.js CHANGED
@@ -8126,6 +8126,10 @@ var KTDataTable = /** @class */ (function (_super) {
8126
8126
  this._element.classList.add('datatable-initialized');
8127
8127
  // Initialize checkbox logic
8128
8128
  this._checkbox.init();
8129
+ // Re-initialize sort handler to restore click listeners after table redraw
8130
+ if (this._sortHandler) {
8131
+ this._sortHandler.initSort();
8132
+ }
8129
8133
  this._attachSearchEvent();
8130
8134
  if (typeof index_1.default !== 'undefined') {
8131
8135
  index_1.default.init();
@@ -9849,16 +9853,13 @@ var KTSelectDropdown = /** @class */ (function (_super) {
9849
9853
  };
9850
9854
  KTSelectDropdown.prototype._resolveDropdownContainer = function () {
9851
9855
  var containerSelector = this._config.dropdownContainer;
9852
- if (containerSelector && containerSelector !== 'body') {
9856
+ if (containerSelector) {
9853
9857
  var containerElement = document.querySelector(containerSelector);
9854
9858
  if (!containerElement && this._config.debug) {
9855
9859
  console.warn("KTSelectDropdown: dropdownContainer selector \"".concat(containerSelector, "\" not found. Dropdown will remain in its default position."));
9856
9860
  }
9857
9861
  return containerElement;
9858
9862
  }
9859
- else if (containerSelector === 'body') {
9860
- return document.body;
9861
- }
9862
9863
  return null;
9863
9864
  };
9864
9865
  return KTSelectDropdown;