Fix firefox compatibility of with-dropdown directive ...


TODO Refactor the directive architecture