BuidlZone-Labs/zicket-web

Broken Newsroom Subscribe Form Structure

已關閉

#176 建立於 2026年7月29日

 (12 則留言) (0 個反應) (1 位負責人)TypeScript (43 個分叉)auto 404
Stellar Wavebugfrontendgood first issuehelp wanted

倉庫指標

星標
 (4 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Category

Bug

Priority

Medium

Description

In app/news/page.tsx, lines 46-66 define a <form> element that wraps only the email input, while the submit <Button type="submit"> (lines 67-76) is placed outside the <form> element. Clicking the "Subscribe!" button fails to trigger the form submit event.

Evidence from app/news/page.tsx#L46-L76:

<form className="..." onSubmit="...">
  <input ... />
</form>
<Button type="submit" ...>Subscribe!</Button>

Proposed Solution

Move the Subscribe <Button> inside the <form> container element.

Acceptance Criteria

  • Subscribe button is inside the <form> element.
  • Pressing Enter or clicking Subscribe triggers form submission.

Files

  • app/news/page.tsx

貢獻者指南