Project

General

Profile

Actions

Bug #14326

open

WMenu looses style classes on first addStyleClass

Added by Michael Seibt 3 days ago. Updated 3 days ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
02/11/2026
Due date:
% Done:

0%

Estimated time:

Description

Affected Wt 4.12.2 (and former versions, checked down to 4.11.4).

WMenu looses all previous style classes on the first call of addStyleClass.
Workaround: re-add the missing style classes

addStyleClass("dropdown-menu");
addStyleClass("Wt-popup");

STR:

--> Complaints about missing style classes in the trace (refer to ensureStyleClass).


Files

main.cpp (11.5 KB) main.cpp Michael Seibt, 02/11/2026 05:19 PM
Actions #1

Updated by Michael Seibt 3 days ago

A similar issue has been resolved for WMenuItem in 4.12.1 with Bug #13720: WBootstrap5: Disabled WMenu items lose their classes on click.

Actions

Also available in: Atom PDF