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.

<br> tag left after textarea clear

See original GitHub issue

There’s an issue when I’m pasting formatted text in the textarea and then delete it the <br> tag left as a value of this field. I see that ngx-wig work with content as a string, so the first thing that comes to mind is regexp that will cut empty tags somehow, but maybe there’s a better/more universal solution.

https://user-images.githubusercontent.com/104344190/168632442-a3bb50ef-15f5-4269-8fde-b3be81b56d76.mp4

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stevermeistercommented, May 17, 2022

@kucherovst it’s correct, that’s how normally opensource works - you push you branch not to the main repository, but first fork and then push your changes to the fork and after it will suggest you to do a PR here

0reactions
stevermeistercommented, May 18, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove line break from textarea - javascript - Stack Overflow
The problem: After sending the message, the textarea is not cleared. On the first page load, the textarea is empty. Once a message...
Read more >
When leaving a text field empty in Firefox a <br /> tag is inserted
This bug is causing big layout problems for me. If a text field using CKeditor in a content type is left empty (say...
Read more >
CKEditor generates <br /> when leaving a textarea field empty
I'm using CKEditor module with satisfaction, but it behaves really frustrating in one case: when leaving textareas empty, it generates <br /> tags...
Read more >
The Textarea element - HTML: HyperText Markup Language
The <textarea> HTML element represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable ...
Read more >
What is <br class="clear" /> in Html? - SitePoint
As @TechnoBear said it sounds like the input and label were floated so you would need to clear each pair before starting another...
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