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

Commit 349f0e6

Browse files
Aljulluwavvves
authored andcommitted
Fix an issue that caused the Order by select in Reviews blocks to always be disabled (#11918)
1 parent 84f6449 commit 349f0e6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

assets/js/base/components/reviews/review-sort-select/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import './style.scss';
1212

1313
interface ReviewSortSelectProps {
1414
onChange: ChangeEventHandler;
15-
readOnly: boolean;
15+
readOnly?: boolean;
1616
value: 'most-recent' | 'highest-rating' | 'lowest-rating';
1717
}
1818

assets/js/blocks/reviews/frontend-block.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ const FrontendBlock = ( {
4949
<ReviewSortSelect
5050
value={ sortSelectValue }
5151
onChange={ onChangeOrderby }
52-
readOnly
5352
/>
5453
) }
5554
<ReviewList attributes={ attributes } reviews={ reviews } />

0 commit comments

Comments
 (0)