cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piotr (JIRA)" <>
Subject [jira] [Created] (CB-13811) jquery-mobile styles lost, when appending <input> with jquery
Date Sun, 21 Jan 2018 16:00:00 GMT
Piotr created CB-13811:

             Summary: jquery-mobile styles lost, when appending <input> with jquery
                 Key: CB-13811
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-android
    Affects Versions: cordova-android-7.0.0
            Reporter: Piotr
            Assignee: Joe Bowser
         Attachments: input1.png, input2.png

Not sure, if this should be considered a bug; it seems unlikely, that nobody has encountered

When <input> fields are added with jquery after 'onDeviceReady' in 'index.js' jquery
mobile styles are lost.

minimal example:



<div id="myone" class="ui-field-contain">





onDeviceReady: function() {

    $("#myone").append("<input type='text' data-clear-btn='true'>");

}, ...

see input2.png

If the <input> fields are added before 'onDeviceReady' they are styled appropriately.

see input1.png


This is akward and I couldn't find any workaround. Does cordova style <input>s in a
special way? Some solution would be highly appreciated!

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message