@churchillliving/se-ui-toolkit 6.53.196 → 6.53.197

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.
@@ -2049,10 +2049,12 @@
2049
2049
  }
2050
2050
  function draggableDialog(id) {
2051
2051
  setTimeout(function () {
2052
- var _a;
2053
- var dialogHeader = document.getElementsByClassName('p-dialog');
2054
- (_a = dialogHeader[0]) === null || _a === void 0 ? void 0 : _a.setAttribute('id', "prefix_" + id);
2055
- var elmnt = document.getElementById("prefix_" + id);
2052
+ var _a, _b;
2053
+ var dialog = document.getElementsByClassName('p-dialog');
2054
+ (_a = dialog[0]) === null || _a === void 0 ? void 0 : _a.setAttribute('id', 'mydiv' + id);
2055
+ var dialogheader = document.getElementsByClassName('p-dialog-header');
2056
+ (_b = dialogheader[0]) === null || _b === void 0 ? void 0 : _b.setAttribute('id', 'mydivheader' + id);
2057
+ var elmnt = document.getElementById('mydiv' + id);
2056
2058
  var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
2057
2059
  var dragMouseDown = function (e) {
2058
2060
  e = e || window.event;
@@ -2074,8 +2076,8 @@
2074
2076
  document.onmouseup = null;
2075
2077
  document.onmousemove = null;
2076
2078
  };
2077
- if (document.getElementById(elmnt === null || elmnt === void 0 ? void 0 : elmnt.id)) {
2078
- document.getElementById(elmnt === null || elmnt === void 0 ? void 0 : elmnt.id).onmousedown = dragMouseDown;
2079
+ if (document.getElementById('mydivheader' + id)) {
2080
+ document.getElementById('mydivheader' + id).onmousedown = dragMouseDown;
2079
2081
  }
2080
2082
  else {
2081
2083
  elmnt.onmousedown = dragMouseDown;