Add documentation to addModalPanel api

This commit is contained in:
Will Binns-Smith
2017-08-14 09:56:43 -07:00
parent 236065d0f6
commit 128f702784
3 changed files with 8 additions and 3 deletions

View File

@@ -178,12 +178,12 @@ describe('PanelContainerElement', () => {
it("focuses the first tabbable item if available", () => {
const panel = createPanel()
const panelEl = panel.getElement()
const inputEl = document.createElement('input')
panelEl.appendChild(inputEl)
panelEl.appendChild(inputEl)
expect(document.activeElement).not.toBe(inputEl)
panel.show()
expect(document.activeElement).toBe(inputEl)
})