on 08-16-2013 2:40 PM
Dear all,
not sure if that is a bug or my miss-understanding things.
I'm trying to dynamically change the style of a sap.m.Input control using the addStyleClass method, with no result
When using the "normal" UI5 (sap.ui.commons.TextField (commented code)) things work as expected (the style is applied)
var tripTo = new sap.m.Input("tripInput" ,{ placeholder: "e.g. Berlin"});
//var tripTo = new sap.ui.commons.TextField("tripInput" ,{ placeholder: "e.g. Berlin"}); --> working code
tripTo.addStyleClass("context-autofill");
When looking a bit into the HTML it appears the using the mobile control (sap.m.Input) the style is added to the <div> containing the <input> (marked red below), while it should be added to the <input> (marked blue below)
<div id="tripInput" data-sap-ui="tripInput" style="width: 100%;" class="context-autofill sapMInput sapMInputBase sapMInputBaseCursor">
<input id="tripInput-inner" placeholder="e.g. Berlin" tabindex="0" value="" type="text" class="context-autofill sapMInputBaseInner">
</div>
I belief this is a bug, but maybe I'm using it wrong. Any Ideas?
Axel
PS: Where can I submit bugs?
Hi Axel,
Could you please let me know whether you are able to resolve this issue.
Regards,
Bhavin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
26 | |
10 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.