Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Fix an issue that caused the Order by select in Reviews blocks to always be disabled #11918

Merged
merged 1 commit into from Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -12,7 +12,7 @@ import './style.scss';

interface ReviewSortSelectProps {
onChange: ChangeEventHandler;
readOnly: boolean;
readOnly?: boolean;
value: 'most-recent' | 'highest-rating' | 'lowest-rating';
}

Expand Down
1 change: 0 additions & 1 deletion assets/js/blocks/reviews/frontend-block.tsx
Expand Up @@ -49,7 +49,6 @@ const FrontendBlock = ( {
<ReviewSortSelect
value={ sortSelectValue }
onChange={ onChangeOrderby }
readOnly
/>
) }
<ReviewList attributes={ attributes } reviews={ reviews } />
Expand Down