Project

General

Profile

WTextEdit inside WStackedWidget causes "Blocked aria-hidden"

Added by Mark Travis 13 days ago

My client wants to give the choice of using a text editor or code editor in a chat type environment.

In trying different things I realized a WStackedWidget was probably the best way to solve that. However, when I set the index of the WStackedWidget to WTextEdit vs a sub-class of WTextArea and back, I'm getting a rather strange message:

I may have to resort to destroying and recreating each editor every time they want to switch, but that is not the most performant option.

For what it's worth, I'm using TinyMCE 6.8.5 in the WTextEdit context.

After browsing https://w3c.github.io/aria/#aria-hidden I'm wondering if this is an issue that needs to be logged with Wt?


Replies (2)

RE: WTextEdit inside WStackedWidget causes "Blocked aria-hidden" - Added by Mark Travis 13 days ago

This is the javascript that blows up before it ever gets back to any breakpoints I've set in WTextEdit or WStackedWidget:

It's in tinymce.min.js

        const Te = function(e) {
            gy(n.removed, {
                element: e
            });
            try {
                e.parentNode.removeChild(e)
            } catch (t) {
                e.remove()
            }
        }

removeChild(e) blows up with a "TypeError: Cannot read properties of null"

RE: WTextEdit inside WStackedWidget causes "Blocked aria-hidden" - Added by Mark Travis 13 days ago

Nevermind. I had the browser debugger set to both type of exceptions, so this is non-critical.

    (1-2/2)