Created
July 26, 2016 16:00
-
-
Save aligator28/f2d4e16684f0f86da420ce1c00113374 to your computer and use it in GitHub Desktop.
input file fires twice in IE срабатывает дважды - решение проблемы
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#imageUpload') - это поле типа файл | |
$('#imageUpload').change() - эти методы срабатывают в ИЕ дважды | |
$('#imageUpload').on('change') | |
а вот правильное решение | |
$('#imageUpload').one('change', function(event){ | |
console.log('change'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment