Fix mobile menu hover bug.

Ref. https://github.com/rails/rails/pull/15000