Fixes layer not closing fully on keyboard close.