We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3daa0b commit 7399302Copy full SHA for 7399302
apps/web/src/views/board/components/NewCardForm.tsx
@@ -63,6 +63,7 @@ export function NewCardForm({
63
const memberPublicIds = watch("memberPublicIds") || [];
64
const isCreateAnotherEnabled = watch("isCreateAnotherEnabled");
65
const position = watch("position");
66
+ const title = watch("title");
67
68
const { data: boardData } = api.board.byId.useQuery(queryParams, {
69
enabled: !!boardPublicId,
@@ -388,7 +389,7 @@ export function NewCardForm({
388
389
/>
390
391
<div>
- <Button type="submit">Create card</Button>
392
+ <Button type="submit" disabled={title.length === 0 || createCard.isPending}>Create card</Button>
393
</div>
394
395
</form>
0 commit comments