@spaethtech/svelte-ui 0.4.1-dev.18.08f6e25 → 0.4.1-dev.19.f8c00be
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.
|
@@ -148,8 +148,9 @@
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
// Enforce
|
|
152
|
-
|
|
151
|
+
// Enforce a sane floor (never 0/negative) and handle maxRows auto-sizing. Floor is 1 so a
|
|
152
|
+
// single-row TextArea is possible (e.g. a chat/compose box that grows from one line).
|
|
153
|
+
const effectiveMinRows = $derived(Math.max(minRows, 1));
|
|
153
154
|
const effectiveMaxRows = $derived(maxRows ?? Infinity);
|
|
154
155
|
// disabled overrides readonly + the copy mode. `button` shows the button; `none` also blocks selection.
|
|
155
156
|
const effectiveReadonly = $derived(disabled ? true : readonly);
|