Skip to content
Snippets Groups Projects
Commit 543c4278 authored by Michael Vanetta's avatar Michael Vanetta Committed by Adam Nagy
Browse files

Issue #3446306: Trigger stoft HTML error when validation fails without Hard limit setting.

parent 54a00af7
Branches
Tags
1 merge request!50Issue #3446306: Trigger stoft HTML error when validation fails without Hard limit setting.
Pipeline #221537 passed with warnings
......@@ -19,6 +19,7 @@
options['counterText'] = $this.attr('maxlength_js_label');
if ($this.hasClass('maxlength_js_enforce')) {
options['enforce'] = true;
options.cssExceeded = 'error';
}
$this.charCount(options);
......@@ -339,7 +340,7 @@
css: 'counter',
counterElement: 'div',
cssWarning: 'warning',
cssExceeded: 'error',
cssExceeded: 'soft-error',
counterText: Drupal.t('Content limited to @limit characters, remaining: <strong>@remaining</strong>'),
action: 'attach',
enforce: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment