In the code below, the OnEnter event is never triggered when pressing Enter in the textbox. This works fine when a textbox is used in a form. We would really like to be able to just press Enter in the Stepper instead of having to use the mouse for clicking Next. I guess I can simulate the Next press with New-ValidationResult?
New-UDStep -Id 'step0' -OnLoad {
New-UDElement -tag 'div' -Content { "User initials:" }
New-UDTextbox -Id 'txtInitials' -Variant 'outlined' -Label 'Initials' -Autofocus -OnEnter {
Show-UDToast -Message "Enter"
}
} -Label "Initials"
Product: PowerShell Universal
Version: 4.0.0-beta4