Skip to content

Commit 79e6127

Browse files
committed
dateinput icon custom renderer progress
1 parent ebd9990 commit 79e6127

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

components/SLDSDatepickerSingleSelect/index.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,18 @@ module.exports = React.createClass({
187187
}
188188
},
189189

190+
getInputIcon(){
191+
return <InputIcon name='event' style={{pointerEvents: 'none'}} />;
192+
},
193+
190194
render() {
191195
return (
192196
<div className='slds-form-element'>
193197
<label className='slds-form-element__label' htmlFor='date'>{this.props.label}</label>
194198
<div className='slds-form-element__control'>
195199
<div className='slds-input-has-icon slds-input-has-icon--right'>
196-
<InputIcon name='event'/>
200+
201+
{ this.getInputIcon() }
197202
<input
198203
name='date'
199204
ref='date'

components/SLDSIcon/InputIcon/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class InputIcon extends React.Component {
3232
render() {
3333
const className = 'slds-input__icon slds-icon-text-default';
3434
return <SLDSUtilityIcon
35+
style={this.props.style}
3536
aria-hidden='true'
3637
category={this.props.category}
3738
className={className}

0 commit comments

Comments
 (0)