From 4199246c4b94972543686e8cfb52307da396cbac Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Sun, 26 Nov 2023 13:48:50 -0600 Subject: [PATCH] fix: fullscreen should render immediately --- src/flash.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/flash.js b/src/flash.js index e464f81..4a4d84e 100644 --- a/src/flash.js +++ b/src/flash.js @@ -9,7 +9,13 @@ module.exports = () => { if (messages.length === 0) continue; for (const message of messages) { if (type === 'custom' && typeof message === 'object') { - steps.push(message); + // render any full screen alerts immediately + // eslint-disable-next-line max-depth + if (message.grow === 'fullscreen') { + Swal.fire(message); + } else { + steps.push(message); + } } else if (typeof message === 'string') { steps.push({ title: