Fix #12845 - Modal#hide should only be called with an event argument

Closes #12850
Merge branch 'hnrch02-modal-toggle'