Skip to content

Commit

Permalink
fix(component): IF button id specified, use it
Browse files Browse the repository at this point in the history
ref: #72
  • Loading branch information
jon-nfc committed Jan 29, 2025
1 parent 4770820 commit cae7c9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/form/Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const Button = ({
<div
className={div_align}
>
<button id={buttonId} className={button_class} onClick={handleButtonClick} type={type}>{button_text}</button>
<button id={id ? id : buttonId} className={button_class} onClick={handleButtonClick} type={type}>{button_text}</button>
</div>);
} else if( menu_entries ) {

Expand All @@ -79,7 +79,7 @@ const Button = ({
>

<div className="submit-dropdown-button">
<button id={buttonId} className="button submit-button" onClick={handleButtonClick} type={type}>{button_text}</button>
<button id={id ? id : buttonId} className="button submit-button" onClick={handleButtonClick} type={type}>{button_text}</button>
<div
className="button dropdown-button"
onClick={(e) =>
Expand Down

0 comments on commit cae7c9e

Please sign in to comment.