Skip to main content
Question

Unexpected Behavior with DocumentChangeEvent

  • August 4, 2023
  • 1 reply
  • 259 views

JR13

Hey everyone,

I’m currently working on a Figma plugin that involves Styles, and I’ve come across an unexpected behavior with the DocumentChangeEvent:

I noticed that when a user opens the “+” pop-up in Local Styles to create a new style, clicking on any style type triggers the DocumentChangeEvent with all three possible style changes (create, delete, property change) at once. However, at this point, nothing is actually created, deleted, or modified, so the user is notified about changes that didn’t happen.

Is there a way to work around it? I want to avoid notifying users about changes that haven’t taken place yet.

Thanks in advance.

This topic has been closed for comments

1 reply

Gayani_S
Figmate
  • Community Support
  • 1977 replies
  • August 18, 2023

Hey @JR13, thank you for flagging this! We’ve forwarded this internally, so this is being looked at.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings