Fix flicker and involuntary cursor movement in modals