From 0cfb0787aba324828669809cbbd37fed3e458b3c Mon Sep 17 00:00:00 2001 From: The-Code-Monkey <31218527+The-Code-Monkey@users.noreply.github.com> Date: Wed, 1 May 2019 15:32:02 +0100 Subject: [PATCH 1/3] Added `type={"button"}` to anchors.js --- src/components/anchors.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/anchors.js b/src/components/anchors.js index 3f61369..19b9960 100644 --- a/src/components/anchors.js +++ b/src/components/anchors.js @@ -43,6 +43,7 @@ export default class Anchors extends React.PureComponent { aria-label={i18n.categories[id]} title={i18n.categories[id]} data-index={i} + type={"button"} onClick={this.handleClick} className={`emoji-mart-anchor ${ isSelected ? 'emoji-mart-anchor-selected' : '' From 14c5d4f2b42fc2749de7f670133a160cbfb537fd Mon Sep 17 00:00:00 2001 From: The-Code-Monkey <31218527+The-Code-Monkey@users.noreply.github.com> Date: Wed, 1 May 2019 15:36:59 +0100 Subject: [PATCH 2/3] attempting to fix the prettier issue --- src/components/anchors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/anchors.js b/src/components/anchors.js index 19b9960..13d61e5 100644 --- a/src/components/anchors.js +++ b/src/components/anchors.js @@ -43,7 +43,7 @@ export default class Anchors extends React.PureComponent { aria-label={i18n.categories[id]} title={i18n.categories[id]} data-index={i} - type={"button"} + type="button" onClick={this.handleClick} className={`emoji-mart-anchor ${ isSelected ? 'emoji-mart-anchor-selected' : '' From af37a7a20f66f172ef6f8e75dbcd59d36a91df05 Mon Sep 17 00:00:00 2001 From: The-Code-Monkey <31218527+The-Code-Monkey@users.noreply.github.com> Date: Wed, 1 May 2019 15:41:07 +0100 Subject: [PATCH 3/3] attempt 2 to fix prettier error --- src/components/anchors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/anchors.js b/src/components/anchors.js index 13d61e5..e503101 100644 --- a/src/components/anchors.js +++ b/src/components/anchors.js @@ -43,7 +43,7 @@ export default class Anchors extends React.PureComponent { aria-label={i18n.categories[id]} title={i18n.categories[id]} data-index={i} - type="button" + type={'button'} onClick={this.handleClick} className={`emoji-mart-anchor ${ isSelected ? 'emoji-mart-anchor-selected' : ''