Skip to content

Commit

Permalink
Merge pull request #1558 from lucasnetau/fix/1555
Browse files Browse the repository at this point in the history
fix: ensure rows attribute is forced to a positive integer
  • Loading branch information
kevinchappell authored Jul 4, 2024
2 parents c180c9f + a9ac85d commit f85399e
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 f85399e

Please sign in to comment.