@jetbrains/ring-ui 5.0.34 → 5.0.35

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.
@@ -54,7 +54,7 @@ export class Input extends PureComponent {
54
54
  empty: !this.input?.value
55
55
  });
56
56
  if (this.props.multiline &&
57
- this.input != null && this.input.scrollHeight > this.input.clientHeight) {
57
+ this.input != null && this.input.scrollHeight >= this.input.clientHeight) {
58
58
  this.stretch(this.input);
59
59
  }
60
60
  }
@@ -62,6 +62,7 @@ export class Input extends PureComponent {
62
62
  if (!el || !el.style) {
63
63
  return;
64
64
  }
65
+ el.style.height = '0'; // To know the real scrollHeight
65
66
  el.style.height = `${el.scrollHeight + 2}px`;
66
67
  }
67
68
  adapt() {
@@ -102,7 +102,7 @@ class Input extends PureComponent {
102
102
  empty: !((_this$input = this.input) !== null && _this$input !== void 0 && _this$input.value)
103
103
  });
104
104
 
105
- if (this.props.multiline && this.input != null && this.input.scrollHeight > this.input.clientHeight) {
105
+ if (this.props.multiline && this.input != null && this.input.scrollHeight >= this.input.clientHeight) {
106
106
  this.stretch(this.input);
107
107
  }
108
108
  }
@@ -112,6 +112,8 @@ class Input extends PureComponent {
112
112
  return;
113
113
  }
114
114
 
115
+ el.style.height = '0'; // To know the real scrollHeight
116
+
115
117
  el.style.height = `${el.scrollHeight + 2}px`;
116
118
  }
117
119
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "5.0.34",
3
+ "version": "5.0.35",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -107,8 +107,8 @@
107
107
  "@types/react-dom": "^18.0.6",
108
108
  "@types/sinon": "^10.0.13",
109
109
  "@types/sinon-chai": "^3.2.8",
110
- "@typescript-eslint/eslint-plugin": "^5.38.1",
111
- "@typescript-eslint/parser": "^5.38.1",
110
+ "@typescript-eslint/eslint-plugin": "^5.39.0",
111
+ "@typescript-eslint/parser": "^5.39.0",
112
112
  "@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
113
113
  "angular": "^1.8.3",
114
114
  "angular-mocks": "^1.8.3",
@@ -119,8 +119,8 @@
119
119
  "chai-as-promised": "^7.1.1",
120
120
  "chai-dom": "^1.10.0",
121
121
  "chai-enzyme": "1.0.0-beta.1",
122
- "cheerio": "^0.22.0",
123
- "core-js": "^3.25.3",
122
+ "cheerio": "^1.0.0-rc.12",
123
+ "core-js": "^3.25.5",
124
124
  "cpy-cli": "^3.1.1",
125
125
  "enzyme": "^3.11.0",
126
126
  "eslint": "^8.24.0",
@@ -145,12 +145,12 @@
145
145
  "karma-sourcemap-loader": "^0.3.8",
146
146
  "karma-teamcity-reporter": "^2.0.0",
147
147
  "karma-webpack": "^5.0.0",
148
- "lerna": "^5.5.4",
148
+ "lerna": "^5.6.1",
149
149
  "lint-staged": "^13.0.3",
150
150
  "merge-options": "^3.0.4",
151
151
  "mocha": "^10.0.0",
152
152
  "pinst": "^3.0.0",
153
- "puppeteer": "^18.0.5",
153
+ "puppeteer": "^18.2.1",
154
154
  "raw-loader": "^4.0.2",
155
155
  "react": "^18.2.0",
156
156
  "react-dom": "^18.2.0",
@@ -160,7 +160,7 @@
160
160
  "rollup": "^2.79.1",
161
161
  "rollup-plugin-clear": "^2.0.7",
162
162
  "rollup-plugin-styles": "^4.0.0",
163
- "sinon": "^14.0.0",
163
+ "sinon": "^14.0.1",
164
164
  "sinon-chai": "^3.7.0",
165
165
  "storage-mock": "^2.1.0",
166
166
  "stylelint": "^14.13.0",
@@ -259,5 +259,5 @@
259
259
  "node": ">=14.0",
260
260
  "npm": ">=6.0.0"
261
261
  },
262
- "gitHead": "bcbd061b5cfb6130c6fe2cc7bed6a16374606a3f"
262
+ "gitHead": "3ff8ec96e113de4650b4d1c74b5631980a02bb88"
263
263
  }