I have the following html:
test &
I also face this problem on Modal
Solved by the following tricks -
$('#saveButton').off('click').on('click', { modal: modal }, save)
Here off('click') prevents the save method fires multiple times.
off('click')