feat: prevent input of non-numeric values ​​in numer input (#21562)

This commit is contained in:
CorrectRoad
2025-06-26 16:43:26 +08:00
committed by GitHub
parent 17722f581b
commit d2814650e6
3 changed files with 20 additions and 9 deletions

View File

@@ -697,4 +697,15 @@ button:focus-within {
-ms-overflow-style: none;
scrollbar-width: none;
}
/* Hide arrows from number input */
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.no-spinner {
-moz-appearance: textfield;
}
}