From e1423edeb0ba354f4eb2e4cdad31ae1916ce841b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Bayreuther?= Date: Fri, 24 Jul 2020 22:46:42 +0200 Subject: [PATCH] fix(type): type on no value elements (#414) Closes: #407 --- src/__tests__/type-modifiers.js | 76 ++++++++++++++++++++++--- src/__tests__/type.js | 24 ++++---- src/paste.js | 6 +- src/type.js | 99 +++++++++++---------------------- 4 files changed, 113 insertions(+), 92 deletions(-) diff --git a/src/__tests__/type-modifiers.js b/src/__tests__/type-modifiers.js index cf79b20e..17f318b8 100644 --- a/src/__tests__/type-modifiers.js +++ b/src/__tests__/type-modifiers.js @@ -443,6 +443,36 @@ test('{enter} on a button', () => { `) }) +test('{enter} with preventDefault on a button', () => { + const {element, getEventSnapshot} = setup('