Skip to content

Commit baedc96

Browse files
authored
Fix boolean attribute parsing issue (#71)
1 parent 0b431cc commit baedc96

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/js/field.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/components/FormField.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,11 @@
235235
attributeValue = parseInt(attributeValue)
236236
conditionValue = parseInt(conditionValue)
237237
238-
}
238+
if (!isNaN(attributeValue)) {
239239
240-
if (!isNaN(attributeValue)) {
240+
attributeValue = parseInt(attributeValue)
241241
242-
attributeValue = parseInt(attributeValue)
242+
}
243243
244244
}
245245

0 commit comments

Comments
 (0)