Closed JeremyCaney closed 3 years ago
This should also be applied to e.g., the TextArea
attribute type, and the FilePath
attribute type. While the TextArea
will often be used with IsExtendedAttribute
, it certainly isn’t limited to it. E.g., the MetaDescription
is a two row TextArea
, but restricted to fewer than 250 characters.
Added the IsExtendedAttribute
property to the AttributeDescriptorViewModel
(ad70a05), and used it to to implicitly set the maxlength
on text
and textarea
inputs, assuming the MaximumLength
property isn't set (2c88e7e).
If an
AttributeDescriptor
is set toIsIndexedAttribute
, then theMaxLength
should be implicitly set to 255, if theMaxLength
isn't otherwise set. This will ensure that data isn't truncated when saved to the database—or that the page won't generate an error due to the data exceeding the database definition. (This behavior may vary by the database used.)