playground icon indicating copy to clipboard operation
playground copied to clipboard

Mouse Up on main tabs (i.e. SCHEMA, TEST RELATIONSHIPS, ASSERTIONS) brings tab to focus

Open julianleonard123 opened this issue 9 months ago • 2 comments

If you mouse-up (i.e. release mouse click) when your pointer is over the main tabs it automatically focuses that tab. This is quite distracting / disorienting when using the Playground.

e.g. when using the TEST RELATIONSHIPS tab, in text mode (i.e. not the grid/table mode), if you try to click and highlight the contents of the tab with your mouse it invariably switches the focus to the SCHEMA tab.

Demo: https://www.loom.com/share/8b9cc161211d4d7daec182940fb1d800?sid=f77f9b62-133b-4fd2-adb0-a5515d65e4b6

julianleonard123 avatar Mar 17 '25 15:03 julianleonard123

Appears to be an issue only in Firefox

josephschorr avatar Mar 17 '25 16:03 josephschorr

I'd also be willing to bet that it's a quirk of MUI somehow. I wouldn't mind migrating off of it towards shadcdn (which we're using in rakis), but that would be a bigger project.

That said, I can still have a look at this and see if there's a more proximate fix.

tstirrat15 avatar Mar 17 '25 18:03 tstirrat15