Skip to content

Commit

Permalink
Disable ai completion text input once completion has been fetched
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Mar 17, 2023
1 parent 3cd31c8 commit 0254e8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const CourseCompletion = () => {
value={courseName}
onChange={({ target }) => setCourseName(target.value)}
sx={{ width: 400 }}
disabled={showCompletion}
/>
<Box mt={1}>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const DimensionCompletion = ({
label={t('openai:dimensionSelect')}
onChange={({ target }) => setdimensionId(target.value)}
sx={{ width: 400 }}
disabled={showCompletion}
>
{dimensions.map((d) => (
<MenuItem
Expand Down

0 comments on commit 0254e8a

Please sign in to comment.