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

Triple clicking in the text field of a onebox popup can return an "undefined" value #2621

Open
alanorth opened this issue Nov 10, 2023 · 0 comments
Labels
bug component: submission help wanted Needs a volunteer to claim to move forward medium priority

Comments

@alanorth
Copy link
Contributor

alanorth commented Nov 10, 2023

Describe the bug
In DSpace 7.6, if you have an input field of type onebox that uses a controlled vocabulary, if you triple click in the input field, the modal is dismissed and an undefined value is filled. I have entities disabled and this seems to affect any input field using a onebox with a controlled vocabulary.

To Reproduce
Steps to reproduce the behavior:

  1. Configure submission-forms.xml with an input field of type onebox that is using a controlled vocabulary. For example:
            <row>
                <field>
                    <dc-schema>dc</dc-schema>
                    <dc-element>subject</dc-element>
                    <dc-qualifier></dc-qualifier>
                    <repeatable>true</repeatable>
                    <label>Subject</label>
                    <vocabulary>srsc</vocabulary>
                    <input-type>onebox</input-type>
                    <required></required>
                </field>
            </row>
  1. Click the text field to bring up the vocabulary select popup modal
  2. Click three times in the text field (empty or not)
  3. The dialog is dismissed and the value is set to "undefined"

The browser console shows an error TypeError: can't access property "isSelected"...

Video (webm/vp9):

submission.webm

Video (mp4):

submission.mp4

Expected behavior
Nothing should happen.

@alanorth alanorth added bug component: submission needs triage New issue needs triage and/or scheduling labels Nov 10, 2023
@github-project-automation github-project-automation bot moved this to 🆕 Triage in DSpace Backlog Nov 10, 2023
@tdonohue tdonohue added help wanted Needs a volunteer to claim to move forward medium priority and removed needs triage New issue needs triage and/or scheduling labels Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component: submission help wanted Needs a volunteer to claim to move forward medium priority
Projects
Development

No branches or pull requests

2 participants