-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to type in text box on UWP #36
Comments
@wtheronjones I'm not seeing this based on the above reproducer steps. Could you share a sample application? |
I will have to get back to you on a sample as we are doing something else on this and are going to come back to it later due to release timelines. My XAML was something like this:
So I have a view model and am binding TextChanged to a Command instead of an event handler, and I use a Converter to convert the AutoSuggestTextBoxTextChangedEventArgs into the value of "SuggestBox.Text", and that converted value goes to my named SuggestTextChanged that takes a string argument. SuggestTextChanged then filters the the "MyListOfStrings" ObservableCollection based on the current text. I noticed that in Dynamic.xaml.cs, in Text_Changed, you set ItemsSource programmatically and I'm not doing that. I don't test it's user input or not. I'm also not doing anything w/ QuerySelected perhaps my logic and/or expectations are off. |
@wtheronjones What did you do in your view model? I'm curious if there's some circular eventing going on between your view model and view. |
In my view, I have a textbox for a subdomain, and a picker for the domain. ie: mysite.somewhere.com. The "mysite" would be suggested w/ autocomplete, and the "somewhere.com" would be in a Picker. When the Picker is changed, the AutoSuggestBox.ItemsSource is updated. I think the difference between what I'm doing and what your Dynamic sample shows is that you're changing the ItemSource as you type and I'm not changing it. |
Ok, I got it basically working and I found a way to prevent typing. My TextChanged handler had to have the following logic: Sorry, code formatting looks bad. Here is the way to prevent typing in the control: Start typing(something that'll match a suggestion) |
Same thing is happening to me. Here's my code:
|
If you want to change the list of suggestions, you should be doing that. The control doesn't filter itself. It's up to your handler to do it. This matches the behavior of UWP's AutoSuggestBox. |
OK, I found a workaround, which was to add an Ideally, the suggestion list should appear on focus if there is text. I suspect that's something you went for, but it's broken. The |
Interestingly, the workaround also works if it's a |
Hi, I have the same issue, someone found a solution ? |
@JordanLongstaff |
Description
Using the AutoSuggestBox on UWP and when you start typing, a popup shows matching suggestions, however when the popup(Flyout?) is visible, you can't type in the search/text box. At no time can I type, backspace, etc and get
I do see an X flicker in the textbox sometime, suggesting I can click X to cancel my entry and revert to placeholder text, but I can never click it.
Selecting the item from the suggestion box works.
Steps to Reproduce
Bind to an ItemSource w/ 1 item in it, run it
Type in a letter that matches the item
Try typing more characters, doing backspace, tab, etc.
2.
Expected Behavior
Actual Behavior
Basic Information
Version with issue:
Last known good version:
IDE: VS 2017
Platform Target Frameworks: netstandard2.0
target version: Win 10, version 1809; build 17763
Nuget Packages: Xamarin.Forms, Rg.Plugins.Popup.
Affected Devices: My machine.
The text was updated successfully, but these errors were encountered: