mardi 28 juin 2016

dojo select widget not parsing arrow correctly


I have found that dojo is not parsing the dropdown arrow to my select list correctly. The issue: Rendering Issue

If I inspect the code I see this:

Bad Select list

<td class="dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer" data-dojo-attach-point="titleNode" role="presentation">

    <input class="dijitReset dijitInputField dijitArrowButtonInner" value="▼ " type="text" tabindex="-1" readonly="readonly" role="presentation">

</td>

You will see in the there is an input. this appears to be the cause of the issue. This is what code from a working list looks like.

Good Select List

<td class="dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer" data-dojo-attach-point="titleNode" role="presentation">

<span class="dijitReset dijitInputField dijitArrowButtonInner"></span>

</td>

Notice in this one it is a span and not a input. If I replace the input in the bade code with span it works.

The issue is I have no clue why dojo is not going this properly during the initial parse. This Good select list code is from a different code base but is the same dojo build.


Aucun commentaire:

Enregistrer un commentaire