From 3ded6d7749a464cd6cb0b30d32a786ccb072be29 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 | 13 ++--- src/paste.js | 6 +- src/type.js | 99 +++++++++++---------------------- 4 files changed, 109 insertions(+), 85 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('