function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AkshaySFDCAkshaySFDC 

Sorry to Interrupt Window appears on My Lightning Component

This page has an error. You might just need to refresh it. First, would you give us some details? (We're reporting this as error ID: -1005328801)
 
I have used Alertify.js on my lightning component to display a warning, once I click 'OK' button on the Alert Box, I always encounter this window attached below.
 
Window

Code Reference :

  alertify.alert('There is Shortage in the added Stock items list').setHeader('<em> WARNING : Cannot Save or Update the Order</em> ');  

 I guess I am not handling the Button action from the Alert Box.
Any idea? what is causing this?

Regards,
Akshay​​​​​​​
 
Danish HodaDanish Hoda
Hi Akshay,
Please share your code
AkshaySFDCAkshaySFDC
  if(stage === 'Ready To Process' || stage === 'Picking') {
                alertify.alert('Warning : There is Shortage in the added Stock items list').setHeader('<em> WARNING </em> '); 
                return "";
               
            }
         else if(stage === 'Closed Won'){
                 alertify.alert('There is Shortage in the added Stock items list').setHeader('<em> WARNING : Cannot Save or Update the Order</em> ');  
                return "success";

         }
Danish HodaDanish Hoda
Hi Akshay,
You need to import some JS libraries to use Alertify.
AkshaySFDCAkshaySFDC
Hi @Danish,

I have imported those libraries in my Component, Please see the following code snippet

<ltng:require styles='/resource/NewOrderAlert/alertify/alertify.css,
                          /resource/NewOrderAlert/alertify/default.css' 
                  scripts='/resource/NewOrderAlert/alertify/alertify.js'/>
AkshaySFDCAkshaySFDC
Main issue lies : b.__internal.activeElement.focus is not a function