-
Notifications
You must be signed in to change notification settings - Fork 36
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
Edit Tree Node -> Title Lags Behind Field Value #3579
Comments
I believe this has been an issue for quite some time (though I can't find an issue for it, if one existed). |
Likely will be fixed by migrating off backbone |
I believe the issue is regarding BackBone events. |
I think the issue is that we don't have a useEffect() at all in this place and are using resource.get('') directly inside of component render (I might be wrong, I didn't look at the code) - which is intuitive, but causes a bug. rather than fixing this place (and many more places that have a similar issue), we should just migrate to a new resource ORM, where resource changes trigger react re-render |
Ah, I see now (maybe)! specify7/specifyweb/frontend/js_src/lib/components/Forms/ResourceView.tsx Lines 159 to 173 in 80ded6e
specify7/specifyweb/frontend/js_src/lib/components/Forms/BaseResourceView.tsx Lines 50 to 69 in 80ded6e
|
Can recreate in edge (7.9.6) |
Describe the bug
The Title in the Editor lags a single character behind the actual field when being changed
To Reproduce
Steps to reproduce the behavior:
Name
and see observe the title reactsExpected behavior
Would be great if they were in sync
Screen Recording
Smaller.Type.Lag.mp4
Desktop:
The text was updated successfully, but these errors were encountered: