HTML field bug noticed after moving to R6

We recently moved an existing R5 web app to R6. Things are going very smoothly except for one issue. Our forms have several HTML fields that look something like this:

To keep our forms pretty in the designer client, we keep the html fields in a collapsed section. For whatever reason, these fields are no longer accessible to the browser if the section was saved as “collapsed”. If I open it up in the designer and save the section as expanded, the fields are accessible to JS in the browser. Any ideas? Once again, this worked perfectly in R5.