Skip to content

[Bug]: Button.disabled no longer defined #5985

@mscherotter

Description

@mscherotter

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

Button

Library version

@spectrum-web-components/button@1.7.0

Expected behavior

Button.disabled should be defined as a boolean in typescript

Actual behavior

Property 'disabled' does not exist on type 'Button'.ts(2339)

Screenshots

Image

What browsers are you seeing the problem in?

No response

How can we reproduce this issue?

access the Button.disabled property in TypeScript code.

Sample code or abstract reproduction which illustrates the problem

private async onRegisterAsync(evt:Event){
const button = evt.currentTarget as unknown as Button;

    try{
        button.disabled = true;

Severity

SEV 3

Logs taken while reproducing problem

No response

Would you like to track this issue in Jira?

  • Yes, please tell me the ticket number!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component:ButtonIncludes ButtonBase, Clear Button, and Close ButtonSEV 3Issue that cause noticeable errors/minor usability problems which cause confusion or degrade UXbugSomething isn't workingtriageAn issue needing triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions