Skip to content

Commit

Permalink
Fix AutoComplete not working issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thisaltennakoon committed Feb 8, 2024
1 parent 4a202f7 commit e2e6baa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ class SubscriptionPolicySelect extends React.Component {
}}
style={{ width: 200 }}
renderInput={(params) => (<TextField {...params} />)}
renderOption={(policy) => (
renderOption={(props, policy) => (
<MenuItem
{...props}
value={policy}
key={policy}
id={'policy-select-' + policy}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ const subscribeToApi = (props) => {
classes={{ root: classes.fullWidth }}
renderInput={(params) => <TextField {...params} />}
groupBy={(option) => option.tierPlan === 'COMMERCIAL' ? 'Commercial' : 'Free'}
renderOption={(policy) => (
<MenuItem value={policy.tierName} key={policy.tierName} className={classes.appDropDown}>
renderOption={(props, policy) => (
<MenuItem {...props} value={policy.tierName} key={policy.tierName} className={classes.appDropDown}>
{policy.tierPlan === 'COMMERCIAL' ? (
<React.Fragment>
<ListItemText
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,17 @@ const tokens = (props) => {
disableCloseOnSelect
value={accessTokenRequest.scopesSelected}
onChange={(e, newValue) => handleChange('scopesSelected', { target: { value: newValue } })}
renderOption={(option, { selected }) => (
<>
renderOption={(props, option, { selected }) => (
<li {...props}>
<Checkbox
id={'access-token-scope-' + option}
icon={icon}
checkedIcon={checkedIcon}
style={{ marginRight: 8 }}
style={{marginRight: 8}}
checked={selected}
/>
{option}
</>
</li>
)}
renderInput={(params) => (
<TextField {...params}
Expand Down

0 comments on commit e2e6baa

Please sign in to comment.