instance-oom/ngx-markdown-editor

Minor bug with <label> tag

eau-de-la-seine opened this issue · 1 comments

Hi, when I encapsulate <md-editor> within <label> it generates **Bold Text** inside the textarea each time I left-click inside the textarea.

<label>
  Content
  <md-editor yourParams></md-editor>
</label>

I think it's not a bug. Because you are using the label element, and when you click on the label, it will pass the event to inside. Try this:

<label>
  <div style="height: 200px">Click Here</div>
  <button type="button">Not Click Me</button>
</label>

If you click on the div area, it will fire the button click event too.