- remove steppers (in number input) also for Firefox
- fix logical error: empty input shows "no card limit" message now
This commit is contained in:
Niko Lockenvitz 2020-08-27 23:00:02 +02:00
parent 321ab20fd5
commit 175e3b70e4
No known key found for this signature in database
GPG key ID: 9403BD1956FFF190

View file

@ -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>