selvagsz / react-power-select

A highly composable & reusable select/autocomplete components

Home Page:https://selvagsz.github.io/react-power-select/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

There's no way to disable clear X functionality

c-emil opened this issue · comments

Hi, first of all, thanks a lot of this awesome plugin, saves a ton of time!

I was reading through your example, but I couldn't find a way to disable the clear functionality.

screen shot 2018-03-28 at 16 00 43

The ember-power-select allows that using allowClear option, but this option doesn't seem to do anything in your case. The only way I can disable this functionality is through hiding it in css, which is not the best option in terms of maintainability since you can change inner classes and that would break my css.

Are you planning to add this option?

commented

Thanks for the kind words.

showClear={false} should clear the x. Sorry for the bad documentation

@selvagsz Thanks very much! I just found out that the documentation for these options is in fact in the component's propTypes. So maybe it would be worth to just include this link somewhere in the readme or above examples for a list of available options.