Closed depeele closed 6 years ago
When updating the value of an x-textarea, the empty property was not properly updated.
value
x-textarea
empty
This pull request adds a call to _updateEmptyState() to the value setter to ensure the empty property is properly updated.
_updateEmptyState()
This also adds a call to validate() to mirror the functionality of x-input.
validate()
x-input
Thanks.
Note that in commit 5c40ba6626c1b1a949bba2c1ae9567b958b4f8cb I have added <x-textarea>.validator() which should be overridden to implement custom validation logic.
<x-textarea>.validator()
When updating the
value
of anx-textarea
, theempty
property was not properly updated.This pull request adds a call to
_updateEmptyState()
to the value setter to ensure theempty
property is properly updated.This also adds a call to
validate()
to mirror the functionality ofx-input
.