semantic-forms 5.2.0 → 5.2.2

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/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "url": "https://github.com/rooseveltframework/semantic-forms/graphs/contributors"
9
9
  }
10
10
  ],
11
- "version": "5.2.0",
11
+ "version": "5.2.2",
12
12
  "files": [
13
13
  "dist",
14
14
  "semanticForms.scss",
@@ -22,12 +22,12 @@
22
22
  "devDependencies": {
23
23
  "@jsdevtools/coverage-istanbul-loader": "3.0.5",
24
24
  "@playwright/test": "1.56.1",
25
- "eslint": "9.38.0",
25
+ "eslint": "9.39.1",
26
26
  "eslint-plugin-html": "8.1.3",
27
27
  "express": "5.1.0",
28
28
  "nodemon": "3.1.10",
29
29
  "nyc": "17.1.0",
30
- "sass": "1.93.2",
30
+ "sass": "1.93.3",
31
31
  "http-server": "14.1.1",
32
32
  "standard": "17.1.2",
33
33
  "webpack-cli": "6.0.1"
package/semanticForms.js CHANGED
@@ -509,7 +509,8 @@ const semanticForms = () => {
509
509
  if (input.getAttribute('data-auto-grow') !== null) {
510
510
  const adjustHeight = () => {
511
511
  if (input.value.length) {
512
- input.style.height = input.scrollHeight + 'px'
512
+ const borderWidth = parseInt(window.getComputedStyle(input).getPropertyValue('border-width'))
513
+ input.style.height = (input.scrollHeight + (borderWidth * 2)) + 'px'
513
514
  } else {
514
515
  input.style.height = window.getComputedStyle(form).getPropertyValue('--semanticFormsInputHeight')
515
516
  }