solid-dismiss
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -1733,3 +1733,3 @@ import { insert, template, delegateEvents, addEventListener, effect, setAttribute, classList, createComponent, mergeProps } from 'solid-js/web'; | ||
_v$6 = props.open() ? "0" : "-1", | ||
_v$7 = state.hasFocusSentinels && props.open() ? "0" : "-1"; | ||
_v$7 = props.open() && state.hasFocusSentinels ? "0" : "-1"; | ||
@@ -1736,0 +1736,0 @@ _v$3 !== _p$._v$3 && setAttribute(_el$2, "id", _p$._v$3 = _v$3); |
@@ -388,3 +388,3 @@ import "./browserInfo"; | ||
{children} | ||
<div tabindex={state.hasFocusSentinels && props.open() ? "0" : "-1"} onFocus={() => { | ||
<div tabindex={props.open() && state.hasFocusSentinels ? "0" : "-1"} onFocus={() => { | ||
onFocusSentinel(state, "last"); | ||
@@ -391,0 +391,0 @@ }} style="position: fixed; top: 0; left: 0; outline: none; pointer-events: none; width: 0; height: 0;" aria-hidden="true" ref={state.focusSentinelLastEl}></div> |
{ | ||
"name": "solid-dismiss", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"homepage": "https://aquaductape.github.io/solid-dismiss/", | ||
@@ -5,0 +5,0 @@ "description": "Handles \"click outside\" behavior for popup menu. Closing is triggered by click/focus outside of popup element or pressing \"Escape\" key.", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
252673