-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extension.entry.fields[field].setValue(value, locale)
updates entry, but UI doesn't update
#166
Comments
@cachrisman you mean in the actual UI Extension that sets the field value? If you send a new value to the API the UI extension needs to take care of reflecting the change visually. The best practice is to listen for That handler triggers for every value change the API is aware of. |
@floelhoeffel the docs seem to have moved, can you point to the new docs? I have the same issue but are struggeling to find the solution you have referenced. edit: I think I found it. feels quite cubersome though:
|
Seeing an issue when expecting Here a simplified example: With fallback field.onValueChanged('en-US', () => {console.log('updated')}) // works as expected
field.setValue('some value', 'en-US') With field.onValueChanged('es', () => {console.log('updated')}) // will not be triggered
field.setValue('some value', 'es') You can see here when the locale is set to a different locale than the fallback the Any suggestions? |
I'm working on an extension and it makes a call
and the entry is updated on the API, but the webapp UI doesn't update. Anything I can do to get the UI to update correctly?
The text was updated successfully, but these errors were encountered: