Project

General

Profile

Actions

Bug #14870

open
AR ED

Javascript error on changing content of tabwidget

Bug #14870: Javascript error on changing content of tabwidget

Added by Achim Reutelsterz about 1 month ago. Updated 3 days ago.

Status:
Review
Priority:
Normal
Target version:
Start date:
10/08/2026
Due date:
% Done:

0%

Estimated time:

Description

Inside a tabwidget, we dynamically replace the content of a tab depending on the item selected in a treeview.
Since WT 4.12.2 a javascript error occurs when clicking that tab after its content has been replaced.
The browser console shows the following error:

Uncaught TypeError: Cannot read properties of null (reading 'style')

It seems that the initial container is not removed from the DOM when the tab content is cleared.

I've attached a minimal example to reproduce this issue. First click on "Replace content of tab1" and then on "Tab1".


Files

main.cpp (2.21 KB) main.cpp Achim Reutelsterz, 10/08/2026 09:20 AM

RM Updated by Romain Mardulyn about 1 month ago Actions #1

  • Target version set to 4.16.0

RM Updated by Romain Mardulyn about 1 month ago Actions #2

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn

RM Updated by Romain Mardulyn 12 days ago Actions #3

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)

ED Updated by emil de keyser 3 days ago Actions #4

  • Assignee set to emil de keyser
Actions

Also available in: PDF Atom