jarek-foksa / xel

Xel - Widget toolkit for building native-like Electron and Web apps
https://xel-toolkit.org
Other
679 stars 58 forks source link

Add _updateEmptyState() to the x-textarea value setter #49

Closed depeele closed 6 years ago

depeele commented 6 years ago

When updating the value of an x-textarea, the empty property was not properly updated.

This pull request adds a call to _updateEmptyState() to the value setter to ensure the empty property is properly updated.

This also adds a call to validate() to mirror the functionality of x-input.

jarek-foksa commented 6 years ago

Thanks.

Note that in commit 5c40ba6626c1b1a949bba2c1ae9567b958b4f8cb I have added <x-textarea>.validator() which should be overridden to implement custom validation logic.