Pergunta

I noticed a strange behavior of IE (any version : 7, 8 or even 9) when executing JavaScript : Drag and drop don't work, but when I press F12 button twice it work perfectly (F12 developer tools)

On Chrome, all code work in perfection, but in IE I should press F12 twice to let code run perfectly.

Can anyone explain what is this bug?

Foi útil?

Solução

I guess its because you are using console.log in your code

console.log is available after you open Developer Tools in IE. Use a try catch;

try{
    console.log('log')
}
catch(err){
}
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top