mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add documentation to addModalPanel api
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user