Closed TatyanaLo closed 2 years ago
Hi, thanks for the heads-up! Could you provide an example of your implementation so I can reproduce this?
søker helt fint mens man skriver, men etter at man har valgt fra listen blir value undefined.
<Input
label="Finn"
defaultValue={value?.display || ""}
onChange={updateInput}
list="id"
/>
<CoreSuggest
id="id"
highlight="off"
onSuggestSelect={(event: CustomEvent<HTMLElement>) => {
const value = event.detail.getAttribute("data-value");
onChange(...);
}}
>
{codingList.length > 0 ? (
<ul>
{codingList.map((coding) => (
<li key={coding.code}>
<button data-value={coding.code}>...</button>
</li>
))}
</ul>
) : null}
@TatyanaLo could you please verify if the problem persists in version @nrk/core-suggest@1.3.4-0?
npm i -E @nrk/core-suggest@1.3.4-0
Fixed!
Merged fix and published patch @nrk/core-suggest@1.3.4 to npm from master
Ved bruk av core-suggest v. 1.3.3.