Skip to content

Commit

Permalink
🐛 add type='button' to fix premature submissions #215
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkjrs committed Feb 27, 2024
1 parent d32e042 commit ef7b453
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ function PromoButton({
<button
id="promo-button-advanced-attributes-collapse"
className="promo-rounded-md promo-bg-slate-100 promo-px-3 promo-py-2 promo-text-xs promo-md:text-sm promo-shadow promo-sm:px-3 promo-sm:py-2 hover:promo-bg-slate-200 hover:promo-shadow-lg promo-border promo-border-transparent dark:promo-bg-slate-700 dark:promo-text-slate-100 dark:hover:promo-bg-slate-600 promo-my-2"
type="button"
onClick={() => {
setIsShowingAdvancedAttributes(
!isShowingAdvancedAttributes
Expand Down

0 comments on commit ef7b453

Please sign in to comment.