When the hoist option is true, the targeted modal element will be hoisted up the DOM tree and becomes a child of body. Given this, we can just set the inert property on all other siblings of target element if inert is supported (and fallback to our existing logic if not)
When the
hoistoption is true, the targeted modal element will be hoisted up the DOM tree and becomes a child of body. Given this, we can just set theinertproperty on all other siblings of target element ifinertis supported (and fallback to our existing logic if not)