JSFiddle - React, Tailwind, and code Playground
by twistedpixel
HTML
<!DOCTYPE html>
<!--[if lt IE 9]> <html class="lt-ie9" dir="ltr"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="nojs" dir="ltr"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>TEST PAGE</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="n crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10.6.1/dist/sweetalert2.all.min.js"></script>
<script>
$(document).ready(function() {
$('body').on('click', '.weirdness-test', function(e) {
e.preventDefault()
swal.fire({
title: 'TEST',
input: 'text',
allowEscapeKey: true
})
})
})
</script>
</head>
<body>
<button class="weirdness-test">Click me, then press Esc</button>
<div>Some text for the top</div>
<div style="height: 5000px; background: purple"></div>
<div style="margin-bottom: 200px">Some text for the bottom</div>
</body>
</html>