@bpmn-io/properties-panel 1.3.0 → 1.3.1
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/index.esm.js +6 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2288,13 +2288,15 @@ function prefixId$3(id) {
|
|
|
2288
2288
|
|
|
2289
2289
|
function resizeToContents(element) {
|
|
2290
2290
|
element.style.height = 'auto';
|
|
2291
|
-
|
|
2291
|
+
|
|
2292
|
+
// a 2px pixel offset is required to prevent scrollbar from
|
|
2293
|
+
// appearing on OS with a full length scroll bar (Windows/Linux)
|
|
2294
|
+
element.style.height = `${element.scrollHeight + 2}px`;
|
|
2292
2295
|
}
|
|
2293
2296
|
function TextArea(props) {
|
|
2294
2297
|
const {
|
|
2295
2298
|
id,
|
|
2296
2299
|
label,
|
|
2297
|
-
rows = 2,
|
|
2298
2300
|
debounce,
|
|
2299
2301
|
onInput,
|
|
2300
2302
|
value = '',
|
|
@@ -2302,7 +2304,8 @@ function TextArea(props) {
|
|
|
2302
2304
|
monospace,
|
|
2303
2305
|
onFocus,
|
|
2304
2306
|
onBlur,
|
|
2305
|
-
autoResize
|
|
2307
|
+
autoResize,
|
|
2308
|
+
rows = autoResize ? 1 : 2
|
|
2306
2309
|
} = props;
|
|
2307
2310
|
const [localValue, setLocalValue] = useState(value);
|
|
2308
2311
|
const ref = useShowEntryEvent(id);
|