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

Hide input field in autosuggest if one item allowed and value selected #10935

Open
GaziYucel opened this issue Feb 14, 2025 · 1 comment
Open

Comments

@GaziYucel
Copy link
Contributor

Describe the feature
An change in the AutoSuggest component used on Contributors screen.

Currently, if only one item is allowed, the input value field is shown after selecting an item. This 'breaks' the layout, see screenshots. It would be better to hide the input value field if only one item is allowed and there is a selected value.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Dashboard > Open any submission
  2. Click on 'Contributors'
  3. Click on 'Edit' for a contributor or 'Add contributor'
  4. Fill a search field in the Affiliations part
  5. Select an institution from the list.

What application are you using?
OJS, OMP or OPS version 3.5.0

Additional information

Current layout

Image

Layout after proposed change

Image

@GaziYucel
Copy link
Contributor Author

See PR pkp/ui-library#526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant