|
@@ -6,7 +6,7 @@ const cuid = require('cuid')
|
|
module.exports = (props) => {
|
|
module.exports = (props) => {
|
|
const uniqueId = cuid()
|
|
const uniqueId = cuid()
|
|
|
|
|
|
- const checkboxSelect = (ev) => {
|
|
|
|
|
|
+ const stop = (ev) => {
|
|
if (ev.keyCode === 13) {
|
|
if (ev.keyCode === 13) {
|
|
ev.stopPropagation()
|
|
ev.stopPropagation()
|
|
ev.preventDefault()
|
|
ev.preventDefault()
|
|
@@ -37,9 +37,9 @@ module.exports = (props) => {
|
|
? { 'disabled': true }
|
|
? { 'disabled': true }
|
|
: {}}
|
|
: {}}
|
|
onchange=${props.handleCheckboxClick}
|
|
onchange=${props.handleCheckboxClick}
|
|
- onkeyup=${checkboxSelect}
|
|
|
|
- onkeydown=${checkboxSelect}
|
|
|
|
- onkeypress=${checkboxSelect} />
|
|
|
|
|
|
+ onkeyup=${stop}
|
|
|
|
+ onkeydown=${stop}
|
|
|
|
+ onkeypress=${stop} />
|
|
<label for=${uniqueId}></label>
|
|
<label for=${uniqueId}></label>
|
|
</div>
|
|
</div>
|
|
<button type="button" class="BrowserTable-item" aria-label="Select ${props.title}" tabindex="0" onclick=${handleItemClick}>
|
|
<button type="button" class="BrowserTable-item" aria-label="Select ${props.title}" tabindex="0" onclick=${handleItemClick}>
|