diff --git a/packages/ckeditor5-list/src/liststyleediting.js b/packages/ckeditor5-list/src/liststyleediting.js
index 22f13e87cac..1ccdd4909e7 100644
--- a/packages/ckeditor5-list/src/liststyleediting.js
+++ b/packages/ckeditor5-list/src/liststyleediting.js
@@ -213,7 +213,7 @@ function upcastListItemStyle() {
dispatcher.on( 'element:li', ( evt, data, conversionApi ) => {
const listParent = data.viewItem.parent;
const listStyle = listParent.getStyle( 'list-style-type' ) || DEFAULT_LIST_TYPE;
- const listItem = data.modelRange.start.nodeAfter;
+ const listItem = data.modelRange.start.nodeAfter || data.modelRange.end.nodeBefore;
conversionApi.writer.setAttribute( 'listStyle', listStyle, listItem );
}, { priority: 'low' } );
diff --git a/packages/ckeditor5-list/tests/liststyleediting.js b/packages/ckeditor5-list/tests/liststyleediting.js
index f20e027e97c..06f6eed13af 100644
--- a/packages/ckeditor5-list/tests/liststyleediting.js
+++ b/packages/ckeditor5-list/tests/liststyleediting.js
@@ -333,6 +333,43 @@ describe( 'ListStyleEditing', () => {
'
Foo
Foo
' ); + } ); + + it( 'should convert a list if it is surrender by two text nodes', () => { + editor.setData( 'FooFoo
Foo
' ); + } ); + } ); } ); } );