Skip to content

Commit

Permalink
fix BIMDataInput for 0 Number
Browse files Browse the repository at this point in the history
  • Loading branch information
LrxGaelle committed Sep 7, 2023
1 parent f811aa7 commit f6e364e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/BIMDataComponents/BIMDataInput/BIMDataInput.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<template>
<div
class="bimdata-input"
:class="{ error, success, disabled, loading, 'not-empty': !!modelValue }"
:class="{
error,
success,
disabled,
loading,
'not-empty': modelValue != null,
}"
:style="style"
>
<input
Expand Down Expand Up @@ -40,7 +46,7 @@ export default {
},
props: {
modelValue: {
type: [String, Number, Boolean],
type: [String, Number],
default: "",
},
placeholder: {
Expand Down

0 comments on commit f6e364e

Please sign in to comment.