-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: New readOnly
property in the component's API
#173
base: master
Are you sure you want to change the base?
Conversation
You can do |
This PR actually adds the |
@elisherer |
@joevo2 , it does: react-selectize/src/SimpleSelect.ls Line 81 in d3f7072
|
@elisherer I see... cause I couldn't find it here. and my tslint is being annoying. any idea why? sorry for the trouble though 😢 update: oh you guys forget to update this file? 😄 https://github.com/furqanZafar/react-selectize/blob/master/src/index.d.ts |
You're right, the |
@green2k I just need to add the type definition into this file then it should work? send a PR? https://github.com/furqanZafar/react-selectize/blob/master/src/index.d.ts sorry im kinda new with ts and oss stuff 😅 |
Using this new property, we can set the component as
readOnly
, so no custom text-input will be allowed.