Skip to content

Commit

Permalink
Merge pull request #149 from MichalBryxi/fix/148-dawer-and-power-select
Browse files Browse the repository at this point in the history
doc: Overlays + Power Select
  • Loading branch information
josemarluedke committed Feb 24, 2021
2 parents 42a7d0d + 8a56f5e commit c3cd847
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/overlays/addon/components/overlay.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ It contains all the core features necessary for a great experience.

> Important: You must have a focusable element inside of the Overlay.
## Note on Overlays and other portal elements

`FormSelect` uses Power Select under the hood and has `@renderInPlace={{false}}` set by default, which will insert the content of the drop-down outside of the `Overlay` (or `Drawer` or `Modal`) and because of that focus-trap will prevent accessing focusable elements ([search input](https://ember-power-select.com/docs/the-search)) in said Power Select. To solve this you have following options:

- `<Overlay @disableFocusTrap={{true}} />` (not recommended)
- `<FormSelect @renderInPlace={{true}} />` (recommended)

## API

<ArgsTable @of="Overlay" />

0 comments on commit c3cd847

Please sign in to comment.