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
Vishal Ranjan 14Vishal Ranjan 14 

Lightning testing service for onblur() event

Hi,

I have written onblur() function with aura:id="dummyId" inside my <Lightning:input> tag and trying simulating same by using document.getElementById("dummyId").dispatchEvent(event); 

But this is giving error saying "Failed: Cannot read property 'dispatchEvent' of null".

Kindly assist.