Remove invalid .on() from bootstrap-dropdown.js

Fixes #6835

Remnant from b5ad50686c where first param was removed but not the whole line