If you're motivated to fix a bug or to develop a new feature, we'd love to see your code. When submitting pull requests, please remember the following:
- Make sure tests pass
Run npm test to make sure your changes don't break existing functionality
- Do not make changes to files in /dist
Limiting your edits to files in /src or /doc_src directories keeps the size of your pull request down and makes it easier for us to evaluate. We'll update the /dist folder after your pull request is approved.
- Add tests
In the best case scenario, you are also adding tests to back up your changes, but don't sweat it if you don't. We can discuss them at a later date.
Build from source
$ npm run build
Functional and Unit Tests
Please ensure all the tests pass:
$ npm test
npm start on your repo will start a web server allowing you to view a local copy of tom-select.js.org.
$ npm start
Once started, you can run all the examples at