React-date-picker: Add a prop to hide the clear icon

Created on 11 Sep 2018  路  4Comments  路  Source: wojtekmaj/react-date-picker

Hi @wojtekmaj . Can I remove that clear icon that is present by default in datepicker. I don't want to show that x icon in my case. Is there any prop to disable that icon. It would be super helpful.
Here is a screenshot:
screenshot from 2018-09-11 15-39-39

enhancement

Most helpful comment

Just checked - setting clearIcon={null} will remove the icon completely. Documentation will be updated to make it clearer.

All 4 comments

Sorryy for troubling you. I just turned the display to none in css. Let me know if there is a prop available to disable it. Would be nice to check that too. Feel free to comment and close this if it is something that might be availalbe in future release.

While your solution is perfectly okay, I agree there should be a way to disable it just like you can with other icons. I'll do that!

Just checked - setting clearIcon={null} will remove the icon completely. Documentation will be updated to make it clearer.

Just checked - setting clearIcon={null} will remove the icon completely. Documentation will be updated to make it clearer.

I tried same thing but it is not working :/ @wojtekmaj

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BaherZ picture BaherZ  路  8Comments

jameskraus picture jameskraus  路  4Comments

allys00 picture allys00  路  4Comments

JMS-1 picture JMS-1  路  7Comments

bhldev picture bhldev  路  6Comments