jquery/jquery-mobile — Issue #2803: .trigger("create") enhances form elements with data-role="none" RC2
Author: anpsince83
Created: 2011-10-21 20:41:07+00:00
State: open

It seems that calling .trigger("create") on an element that contains form elements with `data-role="none"` to keep them native are getting enhanced anyway in RC2. This issue was not present in RC1.

I set up a fiddle here: http://jsfiddle.net/anpsince83/RpMyq/3/ to illustrate the issue. It takes markup for native form elements from the native form elements demo page seen here: http://jquerymobile.com/demos/1.0rc2/docs/forms/forms-all-native.html and adds to the DOM. As you will see, calling `.trigger("create")` causes them to be enhanced when they are not supposed to be.