Skip to content

Commit

Permalink
Adds type=button (#190)
Browse files Browse the repository at this point in the history
* Uses type button so form submission is not triggered

* version bump

* prettier
  • Loading branch information
igorp1 authored Dec 14, 2023
1 parent a297c37 commit bf060ed
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@duffel/components",
"version": "3.1.8",
"version": "3.1.9",
"description": "Component library to build your travel product with Duffel.",
"keywords": [
"Duffel",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const InactiveSegment: React.FC<{
onClick?: React.MouseEventHandler<HTMLButtonElement>;
}> = ({ onClick, style }) => (
<button
type="button"
onClick={onClick}
style={{
border: "none",
Expand Down
1 change: 1 addition & 0 deletions src/components/DuffelAncillaries/seats/SeatElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export const SeatElement: React.FC<SeatElementProps> = ({
return (
<>
<button
type="button"
data-testid={`seat-${element.designator}`}
id={element.designator}
className={seatClassName}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const InactiveSegment: React.FC<{
onClick?: React.MouseEventHandler<HTMLButtonElement>;
}> = ({ onClick, style }) => (
<button
type="button"
onClick={onClick}
style={{
border: "none",
Expand Down
1 change: 1 addition & 0 deletions src/components/PlacesLookup/PlacesLookup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const PlacesLookup: React.FC<PlacesLookupProps> = ({
>
{lookupResults.map(({ item }, index) => (
<button
type="button"
className="places-lookup-popover__item"
key={item.iata_code + index}
onClick={() => {
Expand Down

0 comments on commit bf060ed

Please sign in to comment.