GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
20.78k stars 3.9k forks source link

BUG: ID isn't updating after change #5882

Closed Riddle1001 closed 1 month ago

Riddle1001 commented 2 months ago

GrapesJS version

What browser are you using?

Chrome

Reproducible demo link

https://jsfiddle.net/szLp8h4n

Describe the bug

How to reproduce the bug?

  1. Create a block
  2. Click it
  3. Go to the traits tab
  4. Set an new ID
  5. Go to the styles tab
  6. See the ID hasn't changed (under class)

To see the ID you must:

  1. Do the previous steps
  2. unfocus the block (e.g clicking the body)
  3. focus the block

What is the expected behavior? To have the ID updated without refocusing

What is the current behavior? Needing to refocus to see the ID change

Code of Conduct