207bb8239e7dd305fb520e9de7d3e696b30a3d6e
Browsers only enforce min/max constraints on number inputs when using spinner arrows or keyboard shortcuts, not when users manually type values. This adds a change event listener that clamps typed values to the defined min/max range, applies step alignment if specified, and triggers input events to notify existing handlers.
SillyTavern
LLM Frontend for Power Users
Resources
- GitHub: https://github.com/SillyTavern/SillyTavern
- Docs: https://docs.sillytavern.app/
- Discord: https://discord.gg/sillytavern
- Reddit: https://reddit.com/r/SillyTavernAI
License
AGPL-3.0
Languages
JavaScript
88.7%
HTML
8.1%
CSS
2.8%
Less
0.3%