fix focusing elements on flyouts

it was unable to set a focus to an element
this pr fix this