Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
$(Rails.formInputClickSelector).on("click.confirm", (ev) => {
handleConfirm(ev, getMatchingEventTarget(ev, Rails.formInputClickSelector));
});
});
document.addEventListener("DOMContentLoaded", function() {
$(Rails.formInputClickSelector).on("click.confirm", (ev) => {
handleConfirm(ev, getMatchingEventTarget(ev, Rails.formInputClickSelector));
});
});
document.addEventListener("click", (ev) => {
return handleDocumentEvent(ev, [
Rails.linkClickSelector,
Rails.buttonClickSelector,
Rails.formInputClickSelector
]);
});
document.addEventListener("change", (ev) => {