[Bug]: Table renders with invalid minWidth CSS property in the style attribute #5217
Closed
1 task done
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
extension-table
Version(s)
2.4.0
Bug Description
If I use the minimal table configuration, with just
Table, TableHeader, TableRow, TableCell
added to the extensions array, tables without a minimum cell/col width end up havingstyle: `minWidth: ${tableMinWidth}`,
added to the attributes, however this should bemin-width
.It's pretty simple, I can see the issue right here https://github.com/ueberdosis/tiptap/blob/bd480a20097ee4522a250b1bc03e8779f014818e/packages/extension-table/src/table.ts#L289C26-L289C39
Looks like there was a PR with a fix that was recently closed by the author: #4684 instead of getting merged in.
Browser Used
Chrome
Code Example URL
https://codesandbox.io/p/sandbox/icy-dust-tgrzdd?file=%2Fsrc%2Findex.js%3A7%2C54
Expected Behavior
When a table is inserted, it should have
min-width
in the style attribute.Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: