Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

cursor pointer fix #205

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 12 additions & 14 deletions src/file-input/styleable-element.jsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
import React from 'react'

const containerStyle = {
display: 'inline-block',
position: 'relative'
position: 'relative',
overflow: 'hidden',
direction: 'ltr',

This comment was marked as spam.

}

const inputStyle = {
bottom: 0,
height: '100%',
left: 0,
margin: 0,
opacity: 0,
padding: 0,
position: 'absolute',
right: 0,
top: 0,
width: '100%'
top: 0
}

const StyleableFileInput = ({ children, className, onChange, ...params }) => (
<div className={ `react-fine-uploader-file-input-container ${className || ''}` }
style={ containerStyle }
<div className={`react-fine-uploader-file-input-container ${className || ''}`}
style={containerStyle}
>
{ children }
<input { ...params }
className='react-fine-uploader-file-input'
onChange={ onChange }
style={ inputStyle }
type='file'
{children}
<input {...params}
className='react-fine-uploader-file-input'
onChange={onChange}
style={inputStyle}
type='file'
/>
</div>
)
Expand Down