fix(web): restoring original outputTarget only active due to focus-maintenance

This commit is contained in:
Joshua A. Horton 2023-08-02 14:50:24 +07:00
parent 2863bdbe57
commit f8d4f8eb85

View file

@ -211,6 +211,12 @@ export default class ContextManager extends ContextManagerBase<BrowserConfigurat
const originalTarget = this.activeTarget; // may differ, depending on focus state.
if(target == originalTarget) {
// A focus state may have .currentTarget as null at this stage; if the func
// is being called with a non-null parameter, we want this SET.
if(target) {
this.currentTarget = originalTarget;
}
/**
* If it's already active, we should cancel early.
*