aprog 1.5.6 → 1.5.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/aprog.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aprog",
3
- "version": "1.5.6",
3
+ "version": "1.5.8",
4
4
  "description": "Допоміжна бібліотека js",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/aprog.js CHANGED
@@ -1335,6 +1335,7 @@ export const checkArrays = (arr1, arr2, checkAll = false) => {
1335
1335
 
1336
1336
  const customTitle = (text) => {
1337
1337
  const title = div({
1338
+ id: "tooltip",
1338
1339
  style: {
1339
1340
  position: "absolute",
1340
1341
  background: "rgba(0, 0, 0, 0.8)",
@@ -1343,13 +1344,13 @@ const customTitle = (text) => {
1343
1344
  borderRadius: "5px",
1344
1345
  fontSize: "14px",
1345
1346
  whiteSpace: "nowrap",
1346
- display: "none",
1347
+ display: "block",
1347
1348
  pointerEvents: "none",
1348
1349
  zIndex: 1000,
1349
1350
  },
1350
1351
  value: text
1351
1352
  });
1352
- document.body.appendChild(title);
1353
+ document.body.append(title);
1353
1354
 
1354
1355
  return title;
1355
1356
  };