Skip to content

onFocus and onBlur are still called in disabled Timepicker #1200

Description

@qroll

Component
Timepicker

Describe the bug
onFocus and onBlur are called even when input is disabled

To Reproduce

<Form.Timepicker
    label="This is the disabled state"
    disabled
    onFocus={() => console.log("@@@@@@ focus")}
    onBlur={() => console.log("@@@@@ blur")}
/>

Expected behavior
onFocus and onBlur should not be invoked when disabled={true}

Additional context
Check the other form inputs as well

Ensure that onFocus is not called when input is disabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions