0
0
Fork 0

Ensure tabIndex is number instead of string (#24409)

This commit is contained in:
Nick Schonning 2023-04-04 10:33:44 -04:00 committed by GitHub
parent a425915ce7
commit ec0c104bf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 55 additions and 55 deletions

View file

@ -42,7 +42,7 @@ export default class Upload extends ImmutablePureComponent {
const y = ((focusY / -2) + .5) * 100;
return (
<div className='compose-form__upload' tabIndex='0' role='button'>
<div className='compose-form__upload' tabIndex={0} role='button'>
<Motion defaultStyle={{ scale: 0.8 }} style={{ scale: spring(1, { stiffness: 180, damping: 12 }) }}>
{({ scale }) => (
<div className='compose-form__upload-thumbnail' style={{ transform: `scale(${scale})`, backgroundImage: `url(${media.get('preview_url')})`, backgroundPosition: `${x}% ${y}%` }}>