Commit e05a04ec authored by Yisu Kim's avatar Yisu Kim Committed by Robert Knight

Set the details open property directly

parent 3a503e50
......@@ -95,7 +95,7 @@ export async function scrollElementIntoView(
// the content on the screen.
const details = element.closest('details');
if (details && !details.hasAttribute('open')) {
details.setAttribute('open', '');
details.open = true;
}
await new Promise(resolve =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment