1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-02 08:19:31 +00:00

Fix ios safari

This commit is contained in:
2022-04-22 03:07:54 +00:00
parent d5cdf70705
commit 62cfe7b643
9 changed files with 28 additions and 15 deletions

View File

@@ -48,11 +48,12 @@
{{#if edit}}
<script>
document.querySelector('.testPage__testResultWrapper[data-id="{{result.id}}"] a.resultEdit').addEventListener('click', (e) => {
document.querySelector('.testPage__testResultWrapper[data-id="{{result.id}}"] a.resultEdit').addEventListener(touchEvent, (e) => {
e.preventDefault();
const form = e.path[1].childNodes[3];
const link = e.path[0];
const path = e.path || (e.composedPath && e.composedPath());
const form = path[1].childNodes[3];
const link = path[0];
link.innerText =
(form.style.display === 'none')