Skip to content

Commit

Permalink
add story jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed May 7, 2024
1 parent 36f8048 commit 5cd34a5
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,10 @@ WithCustomRenderItem.args = {
* for individual items in the option object.
*/
export const WithDisabledOptions = Template.bind( {} );
const optionsWithDisabledOptions = countryOptions.map( ( option, index ) => {
return { ...option, disabled: index % 3 === 0 };
} );
const optionsWithDisabledOptions = countryOptions.map( ( option, index ) => ( {
...option,
disabled: index % 3 === 0, // Disable options at index 0, 3, 6, etc.
} ) );

WithDisabledOptions.args = {
allowReset: false,
Expand Down

0 comments on commit 5cd34a5

Please sign in to comment.