The dojo flag is set, but is not yet displayed.

So, I tried to reproduce this in JS Bin, but I could not get dojo to work. This is the same on chrome and firefox.

I have a checkbox and a dojo function that looks like

dojo.ready(function() {
    dijit.byId('checkbox1').checked = true;
});

Now, when the page is displayed, check checked = true is successful, but the checkbox is not displayed, and MUST NOT BE A MOUSE FOR THIS!

He, like a browser, did not redraw the area above the flag. Waving the mouse over the flag, and the browser redraws it so you can see the checkmark.

Has anyone come across this before?

+3
source share
2 answers

You need to use:

dijit.byId('checkbox1').set('checked', true)

. , , .

+4

, css .

Dojo , html.

dojo css ( ), html-, .

, , <body> html class="claro" , .

( , ) dojo claro-theme checkbox not html checkbox

+2

All Articles