[pve-devel] [PATCH widget-toolkit v3 4/4] form: set enforceMaxLength on textareafield

Gabriel Goller g.goller at proxmox.com
Thu Feb 27 13:37:22 CET 2025


On 26.02.2025 18:59, Thomas Lamprecht wrote:
>Am 10.12.24 um 17:11 schrieb Gabriel Goller:
>> This allows us to set `maxLength` on it. `enforceMaxLength` will force
>> extjs to set the `maxLength` property on the underlying inputfield.
>>
>
>isn't it enough to make the field invalid?
>
>It might not be a big problem in practice here, but personally I find
>it slightly infuriating if there is a hard blocker for going over a text
>length limit, as that makes restructuring the text to a shorter variant
>harder to do, as there it's often useful to be able to (temporarily) write
>a longer text as what it's allowed to submit.

Agreed. We can drop the last patch.





More information about the pve-devel mailing list