forked from github/plane
[WEB-848] fix: issue with parent child relation not being removed parent select dropwdown. (#4120)
This commit is contained in:
parent
840bc51537
commit
4cba7ff2f5
@ -684,15 +684,21 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
|
|||||||
<CustomMenu.MenuItem className="!p-1" onClick={() => setParentIssueListModalOpen(true)}>
|
<CustomMenu.MenuItem className="!p-1" onClick={() => setParentIssueListModalOpen(true)}>
|
||||||
Change parent issue
|
Change parent issue
|
||||||
</CustomMenu.MenuItem>
|
</CustomMenu.MenuItem>
|
||||||
<CustomMenu.MenuItem
|
<Controller
|
||||||
className="!p-1"
|
control={control}
|
||||||
onClick={() => {
|
name="parent_id"
|
||||||
setValue("parent_id", null);
|
render={({ field: { onChange } }) => (
|
||||||
handleFormChange();
|
<CustomMenu.MenuItem
|
||||||
}}
|
className="!p-1"
|
||||||
>
|
onClick={() => {
|
||||||
Remove parent issue
|
onChange(null);
|
||||||
</CustomMenu.MenuItem>
|
handleFormChange();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Remove parent issue
|
||||||
|
</CustomMenu.MenuItem>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
</CustomMenu>
|
</CustomMenu>
|
||||||
) : (
|
) : (
|
||||||
|
Loading…
Reference in New Issue
Block a user