Users reported a bug with the Table Builder Component in Discourse 3.1.0.beta3, where clicking the “edit” icon often fails to load table data, though it occasionally works. Ralf_Stockmann first highlighted the issue, noting it occurs consistently across multiple servers. JammyDodger and Arkshine confirmed the problem, with screenshots and videos showing the erratic behavior. pmusaraj identified the root cause: incorrect ID passing when clicking directly on the SVG icon, due to event target issues. The fix was implemented in a PR here, which was later merged by JammyDodger, resolving the issue.
The new and awesome Table Builder Component seems to have a problem (Version 0.0.1): after creating a table (works like a charm), no data is loaded into the table editor if I use the “edit” icon. Sometimes however, it works - maybe 1 out of 10 tries, so maybe there is some timeout/race condition foo going on…
I can reproduce it on 2 different servers, Discourse 3.1.0.beta3 (one of them near-vanilla with no additional plugins/components)
Thanks for the reports, folks. The issue here was that if the click was on the svg icon directly, the ID of the table wasn’t being passed correctly to the editor (if the click target was near the icon, then the event target was correct).