Skip to content

Commit

Permalink
fix: ensure rows attribute is forced to a positive integer
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnetau committed May 2, 2024
1 parent f202e06 commit a9ac85d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/form-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down
2 changes: 1 addition & 1 deletion src/sass/_stage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@
border: 1px solid $error;
}

&.fld-maxlength {
&.fld-maxlength, &.fld-rows {
width: 75px;
}

Expand Down

0 comments on commit a9ac85d

Please sign in to comment.