-
-
Notifications
You must be signed in to change notification settings - Fork 104
Fixes #217 - bug where the selected value is not displayed #278
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for this contribution and for digging it out.
Verry similar kinds of bugs often happen in our environment (someone thinks the render is unnecessary, so they remove it).
Thank you for digging it out and allowing me to update again to the latest version without problems!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this @benshemmeld! 👍
after updating to 4.7.0 every time i type it clears out what i typed from the box, this is not happening in 4.6.0 |
Hmm, I couldn`t reproduce it...
After step 4, the bound value of TypeAhead is the same object that was bound in step 1. I don't see the value or text cleared from the box? |
sorry after testing on another app it seems to be fine and something odd in my code that might be causing it. I apologize i will do further testing. |
So I figured it out I have an on keydown function to close to modal when I hit "escape"
private void HandleKeyDown(KeyboardEventArgs e)
{
if (e.Key == "Escape")
{
CloseModal();
CloseDelete();
}
}
But for some reason in 4.7 this causes that box to reset on the type ahead where in 4.6 it did not. I think that is rather odd but I will have to figure out something else and note this on any others I am using the typeahead on.
|
It happens to me similar to @snibe . After updating to 4.7.0 every time i type it clears out what i typed from the box, this is not happening in 4.6.0. I have not been able to solve it. |
Commenting out the StateHasChanged(); It works well.
|
@benshemmeld this crated a new bug when the Why is it needed to call |
* Bit of tidying up * Fixed bug where the selected value is not displayed (Blazored#278) Co-authored-by: Ben Shemmeld <[email protected]> * Updated TFM to .NET 6 and updated CI (Blazored#280) * Update README.md --------- Co-authored-by: Chris Sainty <[email protected]> Co-authored-by: Ben Shemmeld <[email protected]> Co-authored-by: Ben Shemmeld <[email protected]> Co-authored-by: Chris Sainty <[email protected]>
Fixed bug where the selected value is not displayed
I think the call to
Initialize
fromOnParametersSet
was removed by mistake in this commit 4c6d3baand then later the commented line was removed.
Resolves #217
Resolves #263