Project

General

Profile

Actions

Bug #1988

closed

WPushButton user-provided style class is lost when a setLink() occurs after initial render

Added by Bruce Toll over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
06/17/2013
Due date:
% Done:

0%

Estimated time:

Description

With the Bootstrap theme, Wt automatically adds a default styling class when rendering a WPushButton. User styling can co-exist, but appears to get lost if the button's link is changed with setLink() after the initial render. This issue is demonstrated with button 2 in the attached test program. This issue was found in the current git version 3.3.0-16-gacad52e.

A patch is attached which seems to help with this issue.


Files

Actions #1

Updated by Koen Deforche over 11 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.3.1

Hey Bruce,

Thanks. The patch is spot on.

Regards,

koen

Actions #2

Updated by Koen Deforche over 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF