alloy-editor icon indicating copy to clipboard operation
alloy-editor copied to clipboard

Switching formatted to heading cause an error on safari

Open dew326 opened this issue 6 years ago • 4 comments

I have an issue with switching styles.

This exists only on safari.

The steps to reproduce are hard to explain so I prepared a gif: ae-formatted

dew326 avatar Nov 13 '18 14:11 dew326

Thanks for reporting @dew326, we'll investigate. Does this happen with latest Safari, or is it a specific version?

jbalsas avatar Nov 15 '18 20:11 jbalsas

I have tested this on 12.0.1 and 11.0.2.

dew326 avatar Nov 16 '18 06:11 dew326

Hi @dew326

I tried to reproduce this issue but I'm having a hard time, is there anything specific I should do ?

ae_safari_styles_switch

Thanks!

julien avatar Nov 29 '18 15:11 julien

Hi @julien looks like it only occurs when the second item is empty.

I will try to describe the steps:

  1. Type demo in a new paragraph
  2. Mark the demo and change to formatted
  3. Make two empty paragraphs
  4. Mark those two empty paragraph (do not mark the formatted demo)
  5. Switch to formatted.
  6. Switch to heading 1 (do not change the selection)

dew326 avatar Nov 30 '18 06:11 dew326