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

Query widget appearing when clicking add repeat group button in form #20

Open
eprager412 opened this issue Jan 4, 2024 · 1 comment
Assignees
Milestone

Comments

@eprager412
Copy link

eprager412 commented Jan 4, 2024

Describe the bug
Query widget appearing when clicking add repeat group button in form

To Reproduce
Steps to reproduce:

1: Open for in mode single/fs/c/i
newrepeatgroup.txt
2: Click "[ + ]" button to add a new repeating group in the form

Expected: New repeating group is added to form

Actual: New repeating group is added, but Query widget appears as well

Note: Issue also appears in preview of form

image

@theywa
Copy link

theywa commented Jan 11, 2024

Hi @MartijnR, I found that this issue happens because all the children of the repeated element are readonly that is why the query selector picks the input dom from the query widget and scrolls into it.
For the fix, I have overwritten the method from form.js in enketo-core and put a condition to check if the target dom is repeated/clone dom and exclude the query widget dom from the selector.
If you have spare time please review the OpenClinica/enketo-express-oc#738, Thanks

@MartijnR MartijnR transferred this issue from OpenClinica/enketo-express-oc May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants