From 5a8104e793fdd49bb1910dabb3920387338c49ce Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 23 Aug 2021 18:16:53 +0200 Subject: [PATCH] lint compliance --- www/form/inner.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/form/inner.js b/www/form/inner.js index d16a2b474..4120df1df 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -259,9 +259,9 @@ define([ if (placeholder) { input.placeholder = val; input.value = ''; - $(input).change(function () { - input.placeholder = ''; - $(input).off(change); + $(input).on('keypress', function () { + $(input).removeAttr('placeholder'); + $(input).off('keypress'); }); } if (uid) { $(input).data('uid', uid); }