Product: PowerShell Universal
Version: 2.6.2
Three issues with autocomplete, I’m assuming all are bugs but wanted to make sure on the behavior of the first before submitting bug reports.
Sample code:
New-UDAutocomplete -OnLoadOptions {@('Test', 'Test (1234)', 'Test3', 'Test4') | Where-Object { $_ -match $Body } | ConvertTo-Json
} -OnChange {
Show-UDToast $Body
}
-
Choosing an item from the options doesn’t retain that value in the display unless completely typing the value. Choosing an item with the mouse or arrow keys causing the display to clear.
-
The OnChange event doesn’t fire when completely filling in the a value, but only choosing the item with a mouse click will trigger the change event.
-
Typing the open parenthesis will cause an error to display as show below for every item in the list. My autocomplete had 4000+ items and this caused numerous messages. The sample code only produces four. Additionally, typing the open parenthesis returns “No Options.”


