Fixes #4361: Fix Directive popup on Chrome