From a9ac85dc25d2d0c46075f398562abf6cf8d8adf9 Mon Sep 17 00:00:00 2001 From: James Lucas Date: Thu, 2 May 2024 11:33:34 +1000 Subject: [PATCH] fix: ensure rows attribute is forced to a positive integer --- src/js/form-builder.js | 2 +- src/sass/_stage.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/form-builder.js b/src/js/form-builder.js index b44a5c0b1..663820790 100644 --- a/src/js/form-builder.js +++ b/src/js/form-builder.js @@ -1824,7 +1824,7 @@ function FormBuilder(opts, element, $) { } }) - $stage.on('blur', 'input.fld-maxlength', e => { + $stage.on('blur', 'input.fld-maxlength, input.fld-rows', e => { e.target.value = forceNumber(e.target.value) }) diff --git a/src/sass/_stage.scss b/src/sass/_stage.scss index abe31b2c1..382560f3d 100644 --- a/src/sass/_stage.scss +++ b/src/sass/_stage.scss @@ -656,7 +656,7 @@ border: 1px solid $error; } - &.fld-maxlength { + &.fld-maxlength, &.fld-rows { width: 75px; }