Skip to content
Snippets Groups Projects
  • Jordan Hofker's avatar
    76c5726c
    Check before calling blur on activeElement. · 76c5726c
    Jordan Hofker authored
    It's possible for slides to be in a situation where the last clicked thing was an SVG before the tab/window loses focus. When returning, `.blur()` is called on the previously-active element, but can result in an exception.
    
    This protects against that and will only call `.blur()` when `document.activeElement` supports it.
    76c5726c
    History
    Check before calling blur on activeElement.
    Jordan Hofker authored
    It's possible for slides to be in a situation where the last clicked thing was an SVG before the tab/window loses focus. When returning, `.blur()` is called on the previously-active element, but can result in an exception.
    
    This protects against that and will only call `.blur()` when `document.activeElement` supports it.