ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

button is focusing on modal hide

Open qayyumgb opened this issue 1 year ago • 1 comments

Button from where modal is opened , is focusing on modal close. Is there any way to avoid button focus on modal hide ?

qayyumgb avatar Jan 03 '25 11:01 qayyumgb

Modal as component uses our focus-trap directive for this exact purpose, but you can trick it by reassigning documents active element if you like.

But we have alternative way to use modal as directive, which doesn't use focustrap so you won't have this issue.

lexasq avatar Jan 06 '25 13:01 lexasq