нужно добавить валидацию при заполнении больше значения 8 в инпуте
Assistant
To add validation when the input value exceeds 8, you can use the @input event to handle custom validation logic. Whenever the user inputs a value, you can check if it exceeds the maximum allowed value and handle it accordingly. Below is how you can implement this:
Validation Logic: The validateThreadCount method is triggered every time the input value changes. If the input exceeds 8, an error message is displayed, and the value can be optionally adjusted to 8 to prevent input beyond the allowed limit.
Error Message: When the condition is met, validationError is set with an appropriate error message. This message is rendered in the template to provide feedback to the user.
Automatic Adjustment: Optionally, you may set the input value back to 8 to prevent users from entering a value beyond the specified range.
The implementation ensures the validation is instantly triggered upon user input, improving the user experience by providing immediate feedback.