-
Notifications
You must be signed in to change notification settings - Fork 34
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(quantic): Clear icon not being displayed after selecting a suggestion in quantic searchbox #4481
Conversation
Pull Request ReportPR Title❌ Title should follow the conventional commit spec: Example: Live demo linksBundle Size
SSR Progress
Detailed logssearch : buildInteractiveResultsearch : buildInteractiveInstantResult search : buildInteractiveRecentResult search : buildInteractiveCitation search : buildGeneratedAnswer recommendation : missing SSR support case-assist : missing SSR support insight : missing SSR support commerce : missing SSR support |
The problem is not that icon is not rendered after selecting a query suggestion, the problem like you can see in the first video of the PR description is that the icon is not displayed on first render. Like if you have a query in your search box than update the page, the search box will contain the query but not the icon. I think a simple fix for that could be updating the getter
|
...tic/force-app/main/default/lwc/quanticSearchBoxInput/__tests__/quanticSearchBoxInput.test.js
Outdated
Show resolved
Hide resolved
8ef780f
to
57b20d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
SFINT-5711
ISSUE:
Description:
The clear input button is not being displayed on first render when the query is not empty after selecting a suggestion/recent query on first render
Screen.Recording.2024-09-09.at.11.47.36.AM.mov
SOLUTION PROPOSED:
Modified the
isQueryEmpty
getter to add the&& !this.inputValue;
to the check. This makes theisQueryEmpty
getter evaluate properly and therefore display the clear icon.DEMO:
Screen.Recording.2024-10-01.at.4.35.50.PM.mov