Skip to content

Commit 675738d

Browse files
pdanpdanrstoenescu
authored andcommitted
QInput: change the way clearValue is computed (quasarframework#2690)
closes quasarframework#2689
1 parent dfee23e commit 675738d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/input/QInput.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@ export default {
121121
: 0
122122
},
123123
computedClearValue () {
124-
return this.isNumber && this.clearValue === 0
125-
? this.clearValue
126-
: this.clearValue || (this.isNumber ? null : '')
124+
return this.clearValue === void 0 ? (this.isNumber ? null : '') : this.clearValue
127125
},
128126
computedStep () {
129127
return this.step || (this.decimals ? 10 ** -this.decimals : 'any')

0 commit comments

Comments
 (0)