kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
Remove special handling for comma as it causes problems on iOS 16
rodzic
12f64b1f3e
commit
cba61ea997
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<b-input :value="value" type="number" inputmode="decimal" lang="en_EN" step="any" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" required @keydown.native="frequencyKeydown" @input="updateValue" />
|
<b-input :value="value" type="number" inputmode="decimal" lang="en_EN" step="any" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" required @input="updateValue" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -10,13 +10,6 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
updateValue (value) {
|
updateValue (value) {
|
||||||
this.$emit('input', value)
|
this.$emit('input', value)
|
||||||
},
|
|
||||||
frequencyKeydown (event) {
|
|
||||||
if (event.keyCode === 188) {
|
|
||||||
event.target.value += '.'
|
|
||||||
event.preventDefault()
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue