Query Builder and Focus Lock

Hello

We are using Query Builder within a Modal that uses react-focus-lock. Essentially like this: 

import FocusLock, {AutoFocusInside} from 'react-focus-lock';
import {QueryBuilderComponent} from 'node_modules/@syncfusion/ej2-react-querybuilder';

<FocusLock className={contentClassName} returnFocus={true}>
<AutoFocusInside>
<QueryBuilderComponent
columns={columnData}
ref={(scope) => {
queryBuilderObject = scope;
}}
/>
</AutoFocusInside>
</FocusLock>


This is causing an issue where if we add enough fields, scroll, click to add a new condition or group, then choose condition or group the autofocus catches and pushes to the top of the page and our add group/condition event gets overridden. I tried wrapping the QueryBuilderComponent in <FreeFocusInside> and <MoveFocusInside> but neither worked. I was just curious if Syncfusion had any workarounds with focus lock. Thanks!

1 Reply

SD Saranya Dhayalan Syncfusion Team August 24, 2020 09:08 AM UTC

Hi Jenny, 
 
Thank you for contacting Syncfusion support 
We have checked your reported query, we are not able to reproduced it in our end.  For your convenience we have prepared a sample and video. Please find the below links 
 
 
 
We would like to let you know the following details 
 
1.       Please provide your exact use case scenario. 
 
2.       Please provide video demonstration of the issue. 
 
3.       If possible, please reproduce your reported issue in the above sample. 
 
Please provide the above requested information, based on that we will check and provide you a better solution quickly. 
 
Regards, 
Saranya D 


Loader.
Up arrow icon