JQM trigger create on form control elements doesn't work
So I've run into a very frustration problem. My code is dynamically injecting new form control elements during a pagebefore/show event. The thing is, the form controls are enhanced correctly, BUT the actual act of clicking on them does not WORK. In the case of a checkbox, click on it doesn't apply the checkbox( I even binded a 'tap' event to print a console message and the event isn't called when I click on it.) In the case of a slider, the number field works, but the slider graphic is rooted, it doesn't respond to the mouse.
However, the controls work IF I inject them during 'pagebefore/create' event rather than pagebeforeshow. I've spent the last 1 hours trying to figure out what is going on and right now I'm going to say that it's a BUG.
I have tried trigger('create'), page(), checkboxradio() <- these for some reason seem to completely ignore my markup and create a duplicate slider graphic, or a native looking (tiny) checkbox.
Trigger('refresh'), and checkboxradio('refresh'), the former does nothing, the latter says my checkbox has not been initialized with the widget.