Skip to content

Commit

Permalink
Config UI: localized number input (#9846)
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis authored Sep 16, 2023
1 parent 32e5be7 commit 1816627
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion assets/js/components/Config/PropertyField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<input
:id="id"
v-model="value"
:type="type"
type="number"
step="any"
:placeholder="placeholder"
:required="required"
aria-label="unit"
Expand Down Expand Up @@ -124,3 +125,14 @@ export default {
},
};
</script>

<style>
input[type="number"] {
appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
</style>

0 comments on commit 1816627

Please sign in to comment.