You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nadendlaprasad
changed the title
when using onEditQuery, the explorer scroll resets to beginning
when using onEditQuery, the explorer scroll resets to the beginning
Feb 12, 2024
Is there an existing issue for this?
Current Behavior
In the context of onEditQuery handler, every time it fires, i had to set a state which then resets the scroll to the beginning.
Expected Behavior
The scroll state should persist based on the active query or remain as is without resetting to the beginning.
Steps To Reproduce
const test = ()=>{
const [query, setQuery] = useState("");
const plugins = [explorer];
const onEditQuery = (query) => {
setQuery(query);
};
return ( )
}
Environment
react
18.1.0graphql
Version: 16.4.0Anything else?
No response
The text was updated successfully, but these errors were encountered: