We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The first example on the docs page for including plugins shows:
import TomSelect from 'tom-select/base'; import TomSelect_remove_button from 'tom-select/plugins/remove_button.js'; import TomSelect_dropdown_header from 'tom-select/dropdown_header.js'; TomSelect.define('remove_button', TomSelect_remove_button); TomSelect.define('dropdown_header', TomSelect_dropdown_header);
But looking at the package.json file and the actual directories, I had to do this:
package.json
import TomSelect from 'tom-select/base'; import TomSelect_remove_button from 'tom-select/plugins/remove_button/plugin.js'; import TomSelect_dropdown_header from 'tom-select/dropdown_header/plugin.js'; TomSelect.define('remove_button', TomSelect_remove_button); TomSelect.define('dropdown_header', TomSelect_dropdown_header);
I would expect to be able to copy-paste from the docs and successfully build. But the directions seem to be slightly incorrect.
See above
I am no JavaScript expert, so if I am misunderstanding something, or if there is a better approach than what I recommended here, please let me know.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug description
The first example on the docs page for including plugins shows:
But looking at the
package.json
file and the actual directories, I had to do this:Expected behavior
I would expect to be able to copy-paste from the docs and successfully build. But the directions seem to be slightly incorrect.
Steps to reproduce
See above
Additional context
I am no JavaScript expert, so if I am misunderstanding something, or if there is a better approach than what I recommended here, please let me know.
The text was updated successfully, but these errors were encountered: