When validating complex (multi-field) command inputs, validity was set using getElementsByClassName()[0].setValidity. This meant for cases when the element being validated was a composition of smaller inputs, it would grab the first one and mark it invalid.
Now this is only performed on scalars such that the focus is not yanked to another element.
Fixes nasa/fprime#2312
Rationale
Annoying UI bugs get stomped 🥾🥾🥾.
Testing/Review Recommendations
Try working with multi-filed commands (SEND_SCALAR) and notice the difference!
Change Description
When validating complex (multi-field) command inputs, validity was set using
getElementsByClassName()[0].setValidity
. This meant for cases when the element being validated was a composition of smaller inputs, it would grab the first one and mark it invalid.Now this is only performed on scalars such that the focus is not yanked to another element.
Fixes nasa/fprime#2312
Rationale
Annoying UI bugs get stomped 🥾🥾🥾.
Testing/Review Recommendations
Try working with multi-filed commands (SEND_SCALAR) and notice the difference!
Future Work
None known.