Skip to content
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

Display value not updating after saving #2

Open
paceline opened this issue Feb 28, 2020 · 0 comments
Open

Display value not updating after saving #2

paceline opened this issue Feb 28, 2020 · 0 comments

Comments

@paceline
Copy link

I have the issue that whenever I save a value, and my server has returned the json, only the data-field-value parameter gets updated but not the tag content itself.

I think the line...
this.el.trigger('inplace:done', json);

...should rather be:

this
  .el
  .html(this.element.getAttribute('data-field-value'))
  .trigger('inplace:done', json);

At least that fixes it for me.

Cheers,
Ulf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant