Project

General

Profile

Actions

Bug #13720

open

WBootstrap5: Disabled WMenu items lose their classes on click

Added by Andrey Alekseev 7 days ago.

Status:
New
Priority:
High
Assignee:
-
Target version:
-
Start date:
05/02/2025
Due date:
% Done:

0%

Estimated time:

Description

In my bootstrap-themed app I have a menu with nav-pills style

menu->setStyleClass("nav nav-pills");

Some items are conditionally disabled.

When I click any item, the disabled ones lose their classes and look like regular links.
The affected elements are <a>.
Here's the initial class list: Wt-no-default disabled nav-link.
And only Wt-no-default remains after i click something.

here's a part of ajax, i saw on the inspector tab

var j521=Wt4_11_4.$('oop2c02');
j521.className='Wt-no-default';
j521.setAttribute('href','#');
Wt4_11_4.$('oop2c02').classList.remove('active');

I have no slots connected to the menu, only WStackedWidget was passed to the constructor.
This bug appeared when I updated from Wt 4.11.2 to Wt 4.11.4

No data to display

Actions

Also available in: Atom PDF