File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ export class WYSIWYG {
291291 selectElements [ 0 ] . parentElement . classList . contains ( "list" ) && // 反链复制列表项 https://github.com/siyuan-note/siyuan/issues/6555
292292 selectElements [ 0 ] . parentElement . childElementCount - 1 === selectElements . length ) {
293293 const hasNoLiElement = selectElements . find ( item => {
294- if ( ! selectElements [ 0 ] . contains ( item ) ) {
294+ if ( ! selectElements [ 0 ] . parentElement . contains ( item ) ) {
295295 return true ;
296296 }
297297 } ) ;
@@ -1814,7 +1814,7 @@ export class WYSIWYG {
18141814 selectElements [ 0 ] . parentElement . classList . contains ( "list" ) && // 反链复制列表项 https://github.com/siyuan-note/siyuan/issues/6555
18151815 selectElements [ 0 ] . parentElement . childElementCount - 1 === selectElements . length ) {
18161816 const hasNoLiElement = selectElements . find ( item => {
1817- if ( ! selectElements [ 0 ] . contains ( item ) ) {
1817+ if ( ! selectElements [ 0 ] . parentElement . contains ( item ) ) {
18181818 return true ;
18191819 }
18201820 } ) ;
You can’t perform that action at this time.
0 commit comments