Skip to content

Commit d53e3df

Browse files
committed
fix: unable to edit text inside elements with no text content
1 parent adda9e8 commit d53e3df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveDevelopment/LivePreviewEdit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ define(function (require, exports, module) {
1111
const openTagEnd = html.indexOf(">") + 1;
1212
const closeTagStart = html.lastIndexOf("<");
1313

14-
if (openTagEnd > 0 && closeTagStart > openTagEnd) {
14+
if (openTagEnd > 0 && closeTagStart >= openTagEnd) {
1515
return {
1616
openTag: html.substring(0, openTagEnd),
1717
closeTag: html.substring(closeTagStart)

0 commit comments

Comments
 (0)