electron-api-demos
electron-api-demos copied to clipboard
[Window Events: Blur and Focus] 'Focus on Demo' button is clickable even if the demo is in focus.
- What operating system are you using?
Windows 10 64-bit
- What version of Node.js is on your system?
Node.js v8.9.4
Steps to reproduce:
- Go to section "Windows" -> "Create and Manage Windows" -> "Window Events: Blur and Focus"
- Click on 'View Demo'
- Move the resulting demo window aside such that the position of where the 'Focus on Demo' button would be is shown.
- Without focusing the demo window click that area.
Desired result:
Demo window should become unfocused in favour of the main window, and the 'Focus on Demo' button should reappear.
Actual result:
The main window is focused and then immediately unfocused in favour of the demo window.
Supposed cause:
The 'Focus on Demo' button is not disabled when the demo window is in focus.