poshprotools
poshprotools copied to clipboard
[Bug] Tabbing through a 'New-UDInputField' -Type 'select' results in a $null variable
Steps to Reproduce:
- Create 3 New-UDInput Fields with a select in the middle:
New-UDInputField -Type 'textbox' -Name 'Email' -Placeholder 'Email'
New-UDInputField -Type 'select' -Name 'IssueType' -Placeholder 'Choose A Number' -Values @("One", "Two", "Three")
New-UDInputField -Type 'textbox' -Name 'AltEmail' -Placeholder 'Alternate Email (Optional)'
- In the Input Form, Simply use 'Tab' to navigate through the select form. It will (correctly) retain the first value in the GUI, however, in the -Endpoint, variable
$IssueType
is$null
, whereas it should have a value of"One"
Example: I hit 'Tab' through the 'Account Access' dropdown, assuming it kept the value 'Account Access', but it did not.