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

pkp/pkp-lib##10056 Prevent dropdown from taking whitespace input in autosuggest #372

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

Hafsa-Naeem
Copy link
Contributor

Fixes #10056

@@ -114,12 +114,12 @@
ref="autosuggestInput"
class="pkpAutosuggest__input"
v-bind="inputProps"
@change="inputValue = $event.target.value"
@change="inputValue = $event.target.value.trim()"
@focus="() => (isFocused = true)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, just wondering - is not triming here enough? I would expect that the inputValue always will be trimmed as result and its not needed to trim it on other places again, or do I miss some scenario?

@jardakotesovec jardakotesovec merged commit 93076d9 into pkp:main Jul 2, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

[OJS 3.4] you can add an empty keyword
2 participants