should allow skipping built-in window.confirm when using issueRequest10ms ‣
this.server.respondWith('GET', '/test', 'Clicked!')
try {
var btn = make('<button hx-get="/test" hx-confirm="Sure?">Click Me!</button>')
var handler = htmx.on('htmx:confirm', function(evt) {
evt.detail.question.should.equal('Sure?')
evt.preventDefault()
evt.detail.issueRequest(true)
})
btn.click()
confirm.called.should.equal(false)
this.server.respond()
btn.innerHTML.should.equal('Clicked!')
} finally {
htmx.off('htmx:confirm', handler)
}