This repository was archived by the owner on Mar 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,9 @@ const CreateModal = ({
126
126
boxShadow : 24 ,
127
127
borderRadius : '8px' ,
128
128
padding : '20px 30px' ,
129
- backgroundColor : ( theme ) => theme . palette . mode === 'dark' ? '#1A2027' : 'white'
129
+ backgroundColor : ( theme ) => theme . palette . mode === 'dark' ? '#1A2027' : 'white' ,
130
+ maxHeight : '100vh' ,
131
+ overflowY : 'auto'
130
132
} } >
131
133
< Box sx = { {
132
134
position : 'absolute' ,
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ function AutoCompleteSearchBoard({ setIsSearchOpen }) {
78
78
return (
79
79
< Autocomplete
80
80
sx = { { width : 220 } }
81
+ inputRef = { searchRef }
81
82
id = "asynchronous-search-board"
82
83
// Cái text này hiện ra khi boards là null hoặc sau khi đã fetch boards nhưng rỗng - không có kết quả
83
84
noOptionsText = { ! boards ? 'Type to search board...' : 'No board found!' }
@@ -109,7 +110,6 @@ function AutoCompleteSearchBoard({ setIsSearchOpen }) {
109
110
{ ...params }
110
111
label = "Type to search..."
111
112
size = "small"
112
- inputRef = { searchRef }
113
113
InputProps = { {
114
114
...params . InputProps ,
115
115
startAdornment : (
Original file line number Diff line number Diff line change @@ -182,7 +182,10 @@ const LabelPopover = () => {
182
182
variant = "contained"
183
183
fullWidth
184
184
sx = { { mt : 2 } }
185
- onClick = { ( ) => setViewMode ( VIEW_MODE . CREATE_LABEL ) }
185
+ onClick = { ( ) => {
186
+ setViewMode ( VIEW_MODE . CREATE_LABEL )
187
+ setSearchText ( '' )
188
+ } }
186
189
>
187
190
Add new label
188
191
</ Button >
You can’t perform that action at this time.
0 commit comments