Bug #1987
closedWPushButton theme-provided style class is lost when user modifies styleClass after initial render
0%
Description
With the Bootstrap theme, Wt automatically adds a "btn" class when rendering a WPushButton. However, this "btn" class is lost if user code does an addStyleClass after the initial render, e.g. to highlight a button with "btn-info" or one of the other Bootstrap styles. This issue is demonstrated with button 1 in the attached test program. A possible work-around is for user code to setStyleClass with all necessary user style classes along with a "btn" class. This issue was found in the current git version 3.3.0-16-gacad52e.
I've also attached a patch that seems to help with this issue.
Files
Updated by Koen Deforche over 11 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
- Target version set to 3.3.1
Hey Bruce,
Duh. This is something that got totally overlooked when implementing theme support.
I can see how your patch works, but am reflecting on other ways out of this.
Thanks!
Regards,
koen
Updated by Koen Deforche over 11 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche over 11 years ago
- Status changed from Resolved to Closed