Skip to content

Commit 56dc0d0

Browse files
vishalshrm539Vishal
andauthored
Fixed autocomplete change handler (#246)
Co-authored-by: Vishal <[email protected]>
1 parent 7033574 commit 56dc0d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular-sdk-components/src/lib/_components/field/auto-complete/auto-complete.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export class AutoCompleteComponent implements OnInit, OnDestroy {
310310
}
311311

312312
optionChanged(event: any) {
313-
const value = (event.target as HTMLInputElement).value;
313+
const value = event?.option?.value;
314314
handleEvent(this.actionsApi, 'change', this.propName, value);
315315
}
316316

0 commit comments

Comments
 (0)