Progress bar not updating in 18.2.0.44

I am pretty sure I have the code right, but the progress bar is not updating at all. Here is my code. I have also tried putting the progress bar outside the text box, but it still does not update. The call to EvaluatePassword simply returns an integer from 1-5. I basically tried all the combinations. I tried different Height, no ProgressBarAnimation, different colors and so on. Nothing works. After setting the initial value of the progress bar, it is impossible to update.

     <SfTextBox Placeholder="Password" @bind-Value="@_model.Password" FloatLabelType="@FloatLabelType.Auto" Type="InputType.Password" @onkeypress='@PasswordKeyPressed'>
                <SfProgressBar Type="ProgressType.Linear" Value="@PasswordScore" Height="10" Minimum="0" Maximum="100">
                    <ProgressBarAnimation Enable="true" Duration="1000" Delay="0"></ProgressBarAnimation>
                </SfProgressBar>
            </SfTextBox>

@code {
     private Zxcvbn _zx = new Zxcvbn();
    private int PasswordScore { get; set; }

     private void PasswordKeyPressed(KeyboardEventArgs args)
    {
        var result = _zx.EvaluatePassword((_model.Password ?? string.Empty) + args.Key);

        PasswordScore = result.Score * 20;
    }
}

2 Replies 1 reply marked as answer

BP Baby Palanidurai Syncfusion Team July 13, 2020 12:40 PM UTC

Hi Robert, 

Greetings from Syncfusion. 

We have checked the reported issue with your code snippet. We are able to reproduce the reported issue when having initial value as zero or null. So, we have logged a bug report for this. Please find the below feedback link, 

The fix will be available in our weekly patch release which is scheduled to be rolled out on or before July 21, 2020. We appreciate your patience until then.   
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.    

Regards, 
Baby. 




DG Durga Gopalakrishnan Syncfusion Team July 21, 2020 02:09 PM UTC

Hi Robert, 

We are glad to announce that our v18.2.46 patch release is rolled out, we have added the fix for reported issue. You can use the latest(18.2.46) Syncfusion.EJ2.Blazor NuGet package version to get rid of the reported issue.  
 
Feedback Link 
 
Sample 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 

Regards, 
Durga G 


Marked as answer
Loader.
Up arrow icon