Skip to content

Commit

Permalink
add max length option to textareas
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Joseph Petro committed Jul 7, 2024
1 parent 01c6aea commit 15f6f1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions smart-setting/smart_settings.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class SmartSettings {
setting_elm.addTextArea(textarea => {
textarea.setValue(this.get_setting(setting));
textarea.onChange(async (value) => this.handle_on_change(setting, value, elm));
if (elm.dataset.maxLength) textarea.inputEl.maxLength = elm.dataset.maxLength;
});
}
if (elm.dataset.disabled) setting_elm.setDisabled(true);
Expand Down

0 comments on commit 15f6f1f

Please sign in to comment.