Skip to content

Commit

Permalink
fix: revert accordion state
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Sep 2, 2024
1 parent 007402d commit 504a460
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions projects/tui-editor/extensions/details/details.extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,10 @@ export const TuiDetails = Node.create<TuiDetailsOptions>({
},

renderHTML({HTMLAttributes}) {
const attrs = mergeAttributes(this.options.HTMLAttributes, {
...HTMLAttributes,
open: HTMLAttributes[`data-opened`] || undefined,
});

return [
`div`,
{class: `t-details-wrapper t-details-wrapper_rendered`},
[`details`, attrs, 0],
[`details`, mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0],
[`button`, {class: `t-details-arrow`}],
];
},
Expand Down

0 comments on commit 504a460

Please sign in to comment.