acidb / mobiscroll

Cross platform UI controls for progressive web and hybrid apps (plain JS, jQuery, Angular and React)
https://mobiscroll.com
Other
1.54k stars 439 forks source link

Prevent form element enhancement inside mobiscroll Form #449

Closed dioslaska closed 5 years ago

dioslaska commented 6 years ago

Currently this is possible by adding the data-enhance="false" attribute on the form elements that we do not want to enhance. This works fine for jQuery / Plain js, however in case of Angular / React and custom components there might be no control over the input attributes.

Proposals:

Be able to add data-enhance on a container element.

OR

Add a setting / prop on the Form to disable auto enhancement. In case of Angular / React the provided form components can be used, which will work without the auto enhance as well.

dioslaska commented 5 years ago

This is solved starting from 4.8.0: with the introduction of the standalone form controls there's no need to wrap everything inside Mobiscroll Form, which might enhance other elements, 3rd party controls as well.