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

fix: fix cant select search board result, add create board modal over… #115

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion frontend/src/components/AppBar/CreateModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ const CreateModal = ({
boxShadow: 24,
borderRadius: '8px',
padding: '20px 30px',
backgroundColor: (theme) => theme.palette.mode === 'dark' ? '#1A2027' : 'white'
backgroundColor: (theme) => theme.palette.mode === 'dark' ? '#1A2027' : 'white',
maxHeight: '100vh',
overflowY: 'auto'
}}>
<Box sx={{
position: 'absolute',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ function AutoCompleteSearchBoard({ setIsSearchOpen }) {
return (
<Autocomplete
sx={{ width: 220 }}
inputRef={searchRef}
id="asynchronous-search-board"
// 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ả
noOptionsText={!boards ? 'Type to search board...' : 'No board found!'}
Expand Down Expand Up @@ -109,7 +110,6 @@ function AutoCompleteSearchBoard({ setIsSearchOpen }) {
{...params}
label="Type to search..."
size="small"
inputRef={searchRef}
InputProps={{
...params.InputProps,
startAdornment: (
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/components/Modal/ActiveCard/LabelPopover.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ const LabelPopover = () => {
variant="contained"
fullWidth
sx={{ mt: 2 }}
onClick={() => setViewMode(VIEW_MODE.CREATE_LABEL)}
onClick={() => {
setViewMode(VIEW_MODE.CREATE_LABEL)
setSearchText('')
}}
>
Add new label
</Button>
Expand Down