We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d68861 + 4c30f84 commit 5bee7a4Copy full SHA for 5bee7a4
packages/app-webdir-ui/src/SearchPage/components/sort.js
@@ -16,7 +16,10 @@ import { SortLayout } from "./index.styles";
16
17
const SortPicker = ({ sort, onChange, customSortOptions }) => {
18
const [defaultSortValue, setDefaultSortValue] = useState(sort);
19
- const sortLabelId = useId();
+
20
+ const rawSortLabelId = useId();
21
+ const sortLabelId = `sortBy-${rawSortLabelId.replace(/[^a-zA-Z0-9-_]/g, "")}`;
22
23
const sortOptions = customSortOptions || [
24
{ value: "_score_desc", label: "Relevancy" },
25
{ value: "last_name_asc", label: "Last Name (ascending)" },
0 commit comments