Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit 40b1520

Browse files
authored
Merge pull request #115 from gianghanguyen/fix-fe-bug
fix: fix cant select search board result, add create board modal over…
2 parents 55cd0d5 + 76af90f commit 40b1520

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

frontend/src/components/AppBar/CreateModal.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ const CreateModal = ({
126126
boxShadow: 24,
127127
borderRadius: '8px',
128128
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'
130132
}}>
131133
<Box sx={{
132134
position: 'absolute',

frontend/src/components/AppBar/SearchBoards/AutoCompleteSearchBoard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ function AutoCompleteSearchBoard({ setIsSearchOpen }) {
7878
return (
7979
<Autocomplete
8080
sx={{ width: 220 }}
81+
inputRef={searchRef}
8182
id="asynchronous-search-board"
8283
// 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ả
8384
noOptionsText={!boards ? 'Type to search board...' : 'No board found!'}
@@ -109,7 +110,6 @@ function AutoCompleteSearchBoard({ setIsSearchOpen }) {
109110
{...params}
110111
label="Type to search..."
111112
size="small"
112-
inputRef={searchRef}
113113
InputProps={{
114114
...params.InputProps,
115115
startAdornment: (

frontend/src/components/Modal/ActiveCard/LabelPopover.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ const LabelPopover = () => {
182182
variant="contained"
183183
fullWidth
184184
sx={{ mt: 2 }}
185-
onClick={() => setViewMode(VIEW_MODE.CREATE_LABEL)}
185+
onClick={() => {
186+
setViewMode(VIEW_MODE.CREATE_LABEL)
187+
setSearchText('')
188+
}}
186189
>
187190
Add new label
188191
</Button>

0 commit comments

Comments
 (0)