Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinesp committed Jan 5, 2024
1 parent f6bc96a commit 4f2998c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/wysiwyg/src/dom/dom_methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,8 @@ where
} else if !first_text_node
&& matches!(loc.kind, Paragraph)
{
// FIXME: Workaround for empty paragraphs. This is a hack, but trying to fix the root cause
// breaks lots of other behaviours resulting in dozens of failing tests.
let has_no_children = self
.lookup_container(&loc.node_handle)
.children()
Expand Down

0 comments on commit 4f2998c

Please sign in to comment.