cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piotr (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/jira/browse/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
it..

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

minimal example:

index.html:

...

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

</div>

...

index.js:

...

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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message