Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Dropdown onSelectedChanged typings incorrect #2318

@berickson1

Description

@berickson1

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 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)

Actual Result

event is null

Version

0.43.1

Testcase

https://codesandbox.io/s/fluent-ui-example-v9pf1

Metadata

Metadata

Assignees

No one assigned

    Labels

    vstsPaired with ticket in vsts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions