-
Notifications
You must be signed in to change notification settings - Fork 150
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
TextField / Select wrong render when props changed fast #216
Comments
This is a really interesting bug. While React is responsible for rendering the markup, a lot of the work is delegated to the MDC code. There is definitely a communication issue somewhere in there. Definitely something that I'll look into, but curious if it's blocking you right now, trying to figure out where to prioritize this one. |
it's not blocking me, im added 100ms delay in my saga as temporary fix |
checked code, look at this line export const addClass = () =>
function(className: string) {
if (!this.state.classes.has(className)) {
this._safeSetState(prevState => {
if(prevState.classes.has(className)) {
return null;
}
return classes: prevState.classes.add(className)
});
}
};
export const removeClass = () =>
function(className: string) {
if (this.state.classes.has(className)) {
this._safeSetState(prevState => {
if(!prevState.classes.has(className)) {
return null;
}
return classes: prevState.classes.delete(className) ?
prevState.classes :
prevState.classes
});
}
}; |
Thanks! Thats a huge help. I think I know a way around this, I'll look into it. |
@jamesmfriedman Is this maybe related? https://codesandbox.io/s/62040p3mw Basically, for the TextField component, when the If not I can create an issue for this separately. |
Fixed in 1.5.6, please verify in your codebases. |
It's seems fixed now, but i think you need move |
What RMWC Version are you using?
What browser(s) and React Version is this bug affecting?
What are the steps to reproduce the bug?
Any other information you believe would be useful?
The text was updated successfully, but these errors were encountered: