framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
18.13k stars 3.23k forks source link

Text Editor leaves a \<br> tag behind when erasing the whole text. #3996

Open palagadec opened 2 years ago

palagadec commented 2 years ago

Describe the bug

On Safari browser (tested on macOs), the text editor component leaves a single <br> tag behind when erasing the text, which prevents it from being empty and thus display the placeholder or handling empty text validation.

It seems to work well on chrome (see screenshots)

To Reproduce

Steps to reproduce the behavior:

  1. Go to Text Editor demo on Safari
  2. Type text in the text editor (with placeholder to see directly)
  3. Erase the text
  4. Notice the issue

Screenshots (taken from Text Editor demo)

Safari (after erasing text):

image

Chrome (after erasing text) :

image