mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-22 17:58:05 +00:00
rename event
This commit is contained in:
parent
2b9a6cdfd1
commit
2fb00baec0
1 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ const cuid = require('cuid')
|
|||
module.exports = (props) => {
|
||||
const uniqueId = cuid()
|
||||
|
||||
const checkboxSelect = (ev) => {
|
||||
const stop = (ev) => {
|
||||
if (ev.keyCode === 13) {
|
||||
ev.stopPropagation()
|
||||
ev.preventDefault()
|
||||
|
|
@ -37,9 +37,9 @@ module.exports = (props) => {
|
|||
? { 'disabled': true }
|
||||
: {}}
|
||||
onchange=${props.handleCheckboxClick}
|
||||
onkeyup=${checkboxSelect}
|
||||
onkeydown=${checkboxSelect}
|
||||
onkeypress=${checkboxSelect} />
|
||||
onkeyup=${stop}
|
||||
onkeydown=${stop}
|
||||
onkeypress=${stop} />
|
||||
<label for=${uniqueId}></label>
|
||||
</div>
|
||||
<button type="button" class="BrowserTable-item" aria-label="Select ${props.title}" tabindex="0" onclick=${handleItemClick}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue