mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
[cheatsheet] Make match URL param work
Co-Authored-By: Konnor Rogers <konnor5456@gmail.com>
This commit is contained in:
@@ -33,10 +33,11 @@ table code {
|
||||
let caseSensitive = !matcherId.startsWith("i");
|
||||
let isRegexp = matcherId.endsWith("regexp");
|
||||
|
||||
name_search_i.toggleAttribute("checked", caseSensitive);
|
||||
name_search_regexp.toggleAttribute("checked", isRegexp);
|
||||
|
||||
customElements.whenDefined("wa-checkbox").then(() => {
|
||||
customElements.whenDefined("wa-checkbox").then(async () => {
|
||||
await Promise.all([
|
||||
name_search_i.updateComplete,
|
||||
name_search_regexp.updateComplete,
|
||||
]);
|
||||
name_search_i.checked = caseSensitive;
|
||||
name_search_regexp.checked = isRegexp;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user