eakoriakin / ionic-selectable

Ionic Selectable is an Ionic versatile and highly customizable component that serves as a replacement to Ionic Select, and allows to search items, including async search, create items, customize the layout with templates and much more. It provides an intuitive API and is easy to set up and use.
MIT License
549 stars 125 forks source link

IDE shows an error when binding disabledItems to component boolean #387

Closed pjc2007 closed 2 years ago

pjc2007 commented 2 years ago

Hi, I have just updated to Angular 13, Ionic 6, and am onw seeing an error I have not seen before

In my component, I have a simple boolean..

public isReadOnly: boolean;

But I get this in VSCode IDE image

The error is Type 'boolean' is not assignable to type 'any[]'.ngtsc(2322)

But as you can see, other properties, are ok, eg the [searchFailText]="noItemsFoundText"

So not sure why I am getting these errors on just the disabledItems property?

pjc2007 commented 2 years ago

My bad this is not a problem, I am using eh wrong property. A should be using isEnabled