From 4fb9989b4fc955a2c0df413a617b78236afb8074 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 19 Jan 2018 13:32:08 +0100 Subject: input event is catching more situations than keyup --- view/tpl/notifications_widget.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/tpl') diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 7ce032069..c30945524 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -71,7 +71,7 @@ $("#nav-{{$notification.type}}-menu .notification").removeClass('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(); if(val) { -- cgit v1.2.3