Wrong autocomplete in JSX PropTypes
Whenever I have a prop type such as the following.
assayGroupSummary: React.PropTypes.object
When I press `Tab` it’s changed to:
assayGroupSummary: <React className="PropTypes object"></React>
This happens with all optional props, i.e. those that aren’t qualified at the end with `.isRequired`. Does anybody know how I can disable this annoying feature? Do you think I should report it as a bug?
Many thanks in advance.
Please sign in to leave a comment.
the problem is that 'React.PropTypes.object' is treated as Emmet abbreviation (tag.class.class) in JSX context. Try disabling 'Enable JSX Emmet` in Preferences | Editor | Emmet | JSX, or change the shortcut used to expand Emmet abbreviations from Tab to a different key in Preferences | Editor | Emmet , Expand abbreviation with
I had never heard of Emmet until today. Thanks a lot for letting me know!
Cheers,
Alfonso