Actions
Bug #2095
closedWLineEdit doesn't become red in WBootstrapTheme when validation fails
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/08/2013
Due date:
% Done:
0%
Estimated time:
Description
A simple exmaple:
Wt::WLineEdit *edit = new Wt::WLineEdit;
Wt::WRegExpValidator *val = new Wt::WRegExpValidator(edit);
val->setRegExp("[0-9]*");
edit->setValidator(val);
In standard theme when WLineEdit
has wrong text it gets Wt-invalid
css style and becomes red. But if I set WBootstrapTheme
for the application, the widget doesn't become red.
Updated by Alan Finley over 10 years ago
I missed that in the example description: "In order to apply validation style if the input is not valid, you should surround the input widget in a div or span section and apply the style control-group to it."
I applied that css style and it worked.
Please, close this issue.
Actions