You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Theme Options page should throw a JS error when trying to save an empty required field.
Actual Behavior
If we don't interact (focus/blur) on a required field and leave it empty, we can save the form without any error being displayed. Checking on the required fields should not only be triggered when the field is focused/blurred, but when the form is submitted.
Version
Expected Behavior
A Theme Options page should throw a JS error when trying to save an empty required field.
Actual Behavior
If we don't interact (focus/blur) on a required field and leave it empty, we can save the form without any error being displayed. Checking on the required fields should not only be triggered when the field is focused/blurred, but when the form is submitted.
Demo
Container definition
$theme_options = Container::make( 'theme_options', __( 'Lastweets', 'lastweets' ) );
+
$fields[] = Field::make( 'text', 'lastweet_consumer_key', __( 'Consumer API Key', 'lastweets' ) )->set_required();
The text was updated successfully, but these errors were encountered: