Skip to content

'now' attribute in ProgressBar component not showing the progress. #4741

@BakerShoeMaker

Description

@BakerShoeMaker

I am using the the ProgressBar component and I'm updating the now attribute with state. The actual number is updated but the progress bar component color (variant='success') is not updating. Here is the code:
changeProgressBarWidth = ()=>{ //Set the width of the progress bar here. pb_width++ this.setState({progressBarStatusWidth: pb_width}); console.log("changeProgressBarWidth is being called......................................." +pb_width); } timer.addEventListener('secondsUpdated', ()=>{ this.changeProgressBarWidth(); }); //In render <ProgressBar now={this.state.progressBarStatusWidth} variant="success" />
See example. This is a count down clock so the green part should be around 20%
sdfdfs
:

How can I fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions