From d1fe279b2d293693b8345554f7043f254172ccb5 Mon Sep 17 00:00:00 2001 From: Alex Osman Date: Sun, 19 Nov 2017 22:13:08 -0500 Subject: [PATCH] change back earlier edits --- src/modules/init/content.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/modules/init/content.ts b/src/modules/init/content.ts index b81ec5a6..04d143f1 100644 --- a/src/modules/init/content.ts +++ b/src/modules/init/content.ts @@ -30,14 +30,12 @@ const addInputEvents = (input: HTMLElement): void => { /* * FIXME (this is a bit hacky) - * Set the focus to the input - * Overwrite the submit value with the - * value of the input element ("" or value/defaultValue) + * We're overwriting the default value of confirm button, + * as well as overwriting the default focus on the button */ setTimeout(() => { input.focus(); - const defaultValue = (input as HTMLInputElement).value; - setActionValue(defaultValue) + setActionValue(''); }, 0); };