Fix ref switcher not working on Microsoft Edge
Microsoft Edge has a bug in FormData.getAll()
that returns an undefined
value for each form element that does not match the given key:
https://github.com/jimmywarting/FormData/issues/80
To work around this issue, we just filter out undefined values.
Closes #31373 (closed)
Edited by Stan Hu