You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
The typescript typings for Drpodown onSelectedChanged specifies that it should be a ComponentEventHandler - in which event is always defined and may be defined export declare type ComponentEventHandler<TProps> = (event: React.SyntheticEvent<HTMLElement>, data?: TProps) => void;
In this case TProps is DropdownProps
Steps
Create a Dropdown Component, select an item and observe parameters to onSelectedChanged callback
Expected Result
event object is defined (or typings reflect that it can be undefined/null)
Bug Report
The typescript typings for Drpodown onSelectedChanged specifies that it should be a ComponentEventHandler - in which event is always defined and may be defined
export declare type ComponentEventHandler<TProps> = (event: React.SyntheticEvent<HTMLElement>, data?: TProps) => void;
In this case
TProps
isDropdownProps
Steps
Create a Dropdown Component, select an item and observe parameters to onSelectedChanged callback
Expected Result
event object is defined (or typings reflect that it can be undefined/null)
Actual Result
event is
null
Version
0.43.1
Testcase
https://codesandbox.io/s/fluent-ui-example-v9pf1
The text was updated successfully, but these errors were encountered: