question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

List gets lost when updating data

See original GitHub issue

I have this string defined in the vue data:

<p><strong>Lorem Ipsum</strong></p>
 <p>This is a test blah blah blah</p>
 <ul>
 <li>LIst item 1</li>
 <li>List item 2</li>
 <li>List item 3</li>
 </ul>

when I do @editor-updated=“handleContent” //method handleContent = funcion(value){this.content = value}

The returned value doesn’t have the list in it:

<p><strong>Lorem Ipsum</strong></p><p>
</p><p>This is a test blah blah blah</p><p>
</p><p>



</p>

Is it the plugin that’s stripping the list out?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sir-scriptcommented, Aug 13, 2020

@davidroyer It looks like the problem occurs, when the text has some whitespace between the list items, like <ul><li>Test</li> some whitespace characters <li>Link2</li></ul>

0reactions
hoodistcommented, Dec 6, 2021

In my case, I used after changing like this.

PHP $html = preg_replace("/>\s+</","><", $html);

I think you guys can be processing with regex even other language until it is resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changed List Field data lost - Community @ ShotGrid
I changed the list items in a field thinking it was specific to the project and it changed it for all projects erasing...
Read more >
Modern List Item UI Causes Data Loss
I'm working in SharePoint Online using the modern experience, and I have a custom list with 15 fields.
Read more >
SwiftUI List not updating when changing data in sub-view
SwiftUI List not updating when changing data in sub-view ... am curious if I am missing something obvious, why the list view is...
Read more >
Sorting by column is lost when data is updated #2252 - GitHub
Right before you update the data, check the tableRef.current.state . If the default sorting changed, save the orderBy and orderDirection values ...
Read more >
Lost Android Data After Update? Easy and Effective Ways To ...
Method 1: Get Back Deleted Data From Google Backup · You can see the list of files saved on it. Select the files...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found