Not all of the mapbox examples include all the elements in a form, but in the documentation, it's states "Eligible inputs must be a descendant of a element,".
I had missed the form requirement the first time and got inconsistent performance. Once I wrapped those fields in a form, it all worked well.