“version”: “7.2.0”,
I want to monitor the click of the search button, but I found that there is no related api, so I replaced his button and added a click event, but found that the active on his button was not added
“version”: “7.2.0”,
I want to monitor the click of the search button, but I found that there is no related api, so I replaced his button and added a click event, but found that the active on his button was not added
Hello, I’m Ron, an automated tech support bot
While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:
Hi!
Instead of manually replacing that button, it might be better to just add your own event listener to it.
const ele = instance.iframeWindow.document.querySelector('[data-element="searchButton"]')
ele.addEventListener('click', () => {
console.log('test');
})
I hope this helps!
Thanks,
Logan