Skip to content

Commit

Permalink
Merge pull request #1776 from DTProductions/fix/double-clicking-tiles…
Browse files Browse the repository at this point in the history
…-scanning-mode

Fix #1774
  • Loading branch information
martinbedouret authored Dec 13, 2024
2 parents 6f09ed6 + cd3bdc5 commit c5f9630
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Board/Board.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ export class Board extends Component {
backgroundColor={tile.backgroundColor}
borderColor={tile.borderColor}
variant={variant}
onClick={() => {
onClick={e => {
e.stopPropagation();
this.handleTileClick(tile);
}}
onFocus={() => {
Expand Down Expand Up @@ -253,7 +254,8 @@ export class Board extends Component {
backgroundColor={tile.backgroundColor}
borderColor={tile.borderColor}
variant={variant}
onClick={() => {
onClick={e => {
e.stopPropagation();
this.handleTileClick(tile);
}}
onFocus={() => {
Expand Down

0 comments on commit c5f9630

Please sign in to comment.