fix case where clicking anchor preview and then clicking into the anchorInput causes hideToolbarActions to be called