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

fix(kselect): clear filter on blur [KHCP-13444] #2486

Merged
merged 4 commits into from
Oct 29, 2024

Conversation

portikM
Copy link
Member

@portikM portikM commented Oct 28, 2024

Summary

Addresses: https://konghq.atlassian.net/browse/KHCP-13444

  • clear KSelect filter on blur
  • create new item on Enter key press when filter returns no items
    • mirror this change in KMultiselect for UX consistency across the two components

@portikM portikM self-assigned this Oct 28, 2024
@portikM portikM requested review from adamdehaven, jillztom, Justineo and a team as code owners October 28, 2024 20:38
Copy link

netlify bot commented Oct 28, 2024

Deploy Preview for kongponents-sandbox ready!

Name Link
🔨 Latest commit 1f1846f
🔍 Latest deploy log https://app.netlify.com/sites/kongponents-sandbox/deploys/6720e0c5bc6a8b0008657ac8
😎 Deploy Preview https://deploy-preview-2486--kongponents-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 28, 2024

Deploy Preview for kongponents ready!

Name Link
🔨 Latest commit 1f1846f
🔍 Latest deploy log https://app.netlify.com/sites/kongponents/deploys/6720e0c5e86e2600088916a1
😎 Deploy Preview https://deploy-preview-2486--kongponents.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@portikM portikM enabled auto-merge (squash) October 28, 2024 20:42
Justineo
Justineo previously approved these changes Oct 29, 2024
Copy link
Contributor

@Justineo Justineo left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

// add an item with `enter`
const handleAddItem = (): void => {
if (!props.enableItemCreation || !filterString.value || !uniqueFilterStr.value) {
if (!props.enableItemCreation || !filterString.value || !uniqueFilterStr.value || !props.itemCreationValidator(filterString.value)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

non blocking: It seems that we are missing itemCreationValidator in <KSelect>, shall we align this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Already have a PR for this: #2485

Copy link
Contributor

@Justineo Justineo left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@portikM portikM merged commit 83da311 into main Oct 29, 2024
11 checks passed
@portikM portikM deleted the fix/khcp-13444-kselect-on-blur-behaviour branch October 29, 2024 13:24
kongponents-bot pushed a commit that referenced this pull request Oct 29, 2024
## [9.14.1](v9.14.0...v9.14.1) (2024-10-29)

### Bug Fixes

* **kselect:** clear filter on blur [KHCP-13444] ([#2486](#2486)) ([83da311](83da311))
@kongponents-bot
Copy link
Collaborator

🎉 This PR is included in version 9.14.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants