input event is catching more situations than keyup

This commit is contained in:
Mario Vavti 2018-01-19 13:32:08 +01:00
parent 40a8e50471
commit 4fb9989b4f

View File

@ -71,7 +71,7 @@
$("#nav-{{$notification.type}}-menu .notification").removeClass('d-none'); $("#nav-{{$notification.type}}-menu .notification").removeClass('d-none');
$('#cn-{{$notification.type}}-input-clear').addClass('d-none'); $('#cn-{{$notification.type}}-input-clear').addClass('d-none');
}); });
$(document).on('keyup', '#cn-{{$notification.type}}-input', function(e) { $(document).on('input', '#cn-{{$notification.type}}-input', function(e) {
var val = $('#cn-{{$notification.type}}-input').val().toLowerCase(); var val = $('#cn-{{$notification.type}}-input').val().toLowerCase();
if(val) { if(val) {