発生している問題・試したこと
alertが出るものの、OKを押さずに自動的にreloadしてしまう。
他の箇所に書くと普通に実行できるが、該当部分でうまくいかない。
似た質問を見ながら試してみたが、うまくいかなかった。
該当のソースコード
function next() { if (count === 1) { Swal.fire({ title: 'Sweet!', text: 'Modal with a custom image.', imageUrl: 'https://unsplash.it/400/200', imageWidth: 400, imageHeight: 200, imageAlt: 'Custom image', animation: false }) document.location.reload(); return }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。