[Bug]: #text node as firstChild in <colgroup> after upgrading to Vue 3 #5695
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
table
Version(s)
2.6.6
Bug Description
We recently upgraded our project from Vue.js 2 to Vue.js 3, and after the upgrade, I encountered an issue with how firstChild is handled in a element.
Specifically, the following line of code throws an error because the firstChild of the colgroup is now a
#text
node.Suggested Fix:
Replacing firstChild with firstElementChild solves the issue, as it correctly skips over the text nodes and selects the first actual element:
Browser Used
Chrome
Code Example URL
No response
Expected Behavior
When I resize column I shouldn't get error
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: