From 2ae3d640394dbcd05512606a16100da15afcf141 Mon Sep 17 00:00:00 2001 From: He4eT Date: Sun, 28 May 2023 02:26:21 +0300 Subject: [PATCH] InputBox: disable on Game Over --- src/components/Player/InputBox.jsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/Player/InputBox.jsx b/src/components/Player/InputBox.jsx index 722aa72..71c62a7 100644 --- a/src/components/Player/InputBox.jsx +++ b/src/components/Player/InputBox.jsx @@ -106,11 +106,6 @@ export default function InputBox ({ } } - const noopHandler = (event) => { - event.target.valut = '' - event.preventDefault() - } - const inputHandlers = { char: { maxlength: '1', @@ -127,8 +122,7 @@ export default function InputBox ({ }, finished: { placeholder: 'The program has finished', - onKeyDown: noopHandler, - onKeyPress: noopHandler, + disabled: true, }, }