fix bugs
- remove steppers (in number input) also for Firefox - fix logical error: empty input shows "no card limit" message now
This commit is contained in:
parent
321ab20fd5
commit
175e3b70e4
1 changed files with 4 additions and 4 deletions
|
@ -51,13 +51,11 @@ export default class CardLimit extends CardLimitProps {
|
||||||
showHelpText = false;
|
showHelpText = false;
|
||||||
|
|
||||||
get label() {
|
get label() {
|
||||||
return this.cardLimit === "0" || null
|
return this.curCardLimit ? this.defaultLabel : this.noLimitString;
|
||||||
? this.noLimitString
|
|
||||||
: this.defaultLabel;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get curCardLimit() {
|
get curCardLimit() {
|
||||||
return this.cardLimit === "0" || null ? null : this.cardLimit;
|
return this.cardLimit === "0" || !this.cardLimit ? null : this.cardLimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
set curCardLimit(newValue) {
|
set curCardLimit(newValue) {
|
||||||
|
@ -89,9 +87,11 @@ p .v-icon {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Disable stepper in number input */
|
/* Disable stepper in number input */
|
||||||
|
::v-deep input,
|
||||||
::v-deep input::-webkit-outer-spin-button,
|
::v-deep input::-webkit-outer-spin-button,
|
||||||
::v-deep input::-webkit-inner-spin-button {
|
::v-deep input::-webkit-inner-spin-button {
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
-moz-appearance: textfield;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue