enterprise-wc icon indicating copy to clipboard operation
enterprise-wc copied to clipboard

IdsSearchField : Search suggestion are not visible

Open Jaydip14 opened this issue 10 months ago • 6 comments

Describe the bug IdsSearchField does not show suggestions. I was able to observe popup opening related errors in console.

To Reproduce Steps to reproduce the behavior:

  1. Add ids-search-field web component
  2. provide dataset with data in component
  3. start application
  4. Observe behavior

<ids-search-field [data]="dataset$ | async" id="search-field-autocomplete" label-state="collapsed" placeholder="Search" caps-lock="true" align="start" search-field="label" autocomplete clearable ></ids-search-field>

Expected behavior We should be seeing suggestions in popup menu. However, I was observing errors in console.

Version

  • ids-enterprise: 1.0.0-beta.21

Screenshots image

image

Platform

  • Infor Application/Team Name: Infor Birst ETLP
  • Device: MacBook
  • OS Version: MacOS 14.4.1
  • Browser Name: chrome
  • Browser Version: 123.0.6312.106

Jaydip14 avatar Apr 04 '24 21:04 Jaydip14

So this is autocomplete? https://main.wc.design.infor.com/ids-input/autocomplete.html Im not seeing any error there maybe we need a specific example?

tmcconechy avatar Apr 05 '24 11:04 tmcconechy

Yes, it is autocomplete with ids-search-field. As for the specific example, does providing video recording will work?

Jaydip14 avatar Apr 05 '24 16:04 Jaydip14

Code would be better. If not possible to provide a code snippet i can try to make the example and see if it works

tmcconechy avatar Apr 05 '24 16:04 tmcconechy

This is an Angular application.

HTML Template: <ids-search-field (selected)="handleSelected($event)" (input)="handleSearch($event)" [data]="dataset$ | async" id="search-field-autocomplete" label-state="collapsed" placeholder="Search" caps-lock="true" align="start" search-field="label" autocomplete clearable ></ids-search-field>

Component file: private readonly datasetSubject: BehaviorSubject<SearchableDataset[]> = new BehaviorSubject([{"id":"2","label":"Pipeline_1712323234225"},{"id":"workflow-1","label":"March Demo Pipeline"} {"id":"workflow-2","label":"Sales & Revenue 2021 - 3"}])

public readonly dataset$: Observable<SearchableDataset[]> = this.datasetSubject.asObservable()

public handleSearch(ev: Event): void {
    const value: string = (ev.target as any).value
    this.search.search(value)
}

public handleSelected(ev: Event): void {
    const id = (ev.target as any)?.value
    this.search.handleSearchSelection(id)
}

`

Jaydip14 avatar Apr 05 '24 16:04 Jaydip14

Hi @tmcconechy, I am also seeing this issue in ids-enterprise version 1.0.0. Thanks

ShwetaKhera avatar Apr 17 '24 15:04 ShwetaKhera

@ShwetaKhera thanks. We didnt fix this just yet. Its in progress now

tmcconechy avatar Apr 17 '24 15:04 tmcconechy

This is now working as expected.

https://main.wc.design.infor.com/ids-search-field/example.html image

glenlieorillo avatar Apr 30 '24 08:04 glenlieorillo