[bug][33927] Modal.js bug in firefox;
Fix #3861