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

form updateData not re-render the compoenent which data changed #414

Closed
geods3 opened this issue Apr 10, 2020 · 1 comment
Closed

form updateData not re-render the compoenent which data changed #414

geods3 opened this issue Apr 10, 2020 · 1 comment

Comments

@geods3
Copy link

geods3 commented Apr 10, 2020

Bug Report

In Form component item when we call updateData and the field which we update use's render method the render doesn't called but the value correctly change's

Package versions:

devexteme version: 19.2.7
devextreme-react version: 19.2.7

Steps to reproduce:
https://codesandbox.io/s/zen-rgb-h3mdc?file=/src/index.js

Current behavior:

Expected behavior:

Screenshots:

@LexDX
Copy link

LexDX commented Aug 26, 2020

Hi @geods3,

This is expected. We do not rerender components when the updateData function is called. So, it is necessary to rerender the form completely. You can use our repaint function for this purpose:

data.component.updateData("userPerms", 1);
data.component.repaint();

@LexDX LexDX closed this as completed Aug 26, 2020
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

2 participants