chore: bug fixes & improvement (#3218)

* chore: draft issue validation added to prevent saving empty or whitespace title

* chore: resolve scrolling issue in page empty state

* chore: kanban layout quick add issue improvement
This commit is contained in:
Anmol Singh Bhatia 2023-12-21 15:56:02 +05:30 committed by sriram veeraghanta
parent 5f681973a0
commit 0a41eff435
3 changed files with 63 additions and 61 deletions

View file

@ -22,7 +22,7 @@ const Inputs = (props: any) => {
}, [setFocus]);
return (
<div>
<div className="w-full">
<h4 className="text-xs font-medium leading-5 text-custom-text-300">{projectDetail?.identifier ?? "..."}</h4>
<input
autoComplete="off"

View file

@ -187,7 +187,7 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = observer((prop
*/
const onDiscardClose = () => {
if (formDirtyState !== null) {
if (formDirtyState !== null && formDirtyState.name.trim() !== "") {
setShowConfirmDiscard(true);
} else {
handleClose();