Skip to content

Commit d279796

Browse files
committed
disable calendar icon click handling when disabled
1 parent ef5b79b commit d279796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scripts/DateInput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ export default class DateInput extends Component {
182182
/>
183183
<span
184184
tabIndex={ -1 }
185-
style={ { cursor: 'pointer' } }
186-
onClick={ this.onDateIconClick }
185+
style={ props.disabled ? undefined : { cursor: 'pointer' } }
186+
onClick={ props.disabled ? undefined : this.onDateIconClick }
187187
>
188188
<Icon icon='event' className='slds-input__icon' />
189189
</span>

0 commit comments

Comments
 (0)