Comments (7)
@arielcr I'm running into the same issue. I think the $watch on selection needs to be updated to reset the itemMeta.selected flag. If I get it working, I'll post my code.
from nghierarchicalselector.
If you get it working, submit a PR please :) Sorry haven't had any time to give this some love
from nghierarchicalselector.
@ujwalbaidar I came across with the same problem. I ended up using this little hack, not the fanciest solution, but it works. Just place this code somewhere on your controller where you want the reset the field:
angular.element(document.querySelector('.hierarchical-input')).empty();
from nghierarchicalselector.
thanks @arielcr happy for a PR if you want to fix the component. I haven't had much time to work on this.
from nghierarchicalselector.
I'm working on it @lukemurray . The workaround that I posted above only clears the input field, but the checkboxes remain checked. Any idea on how to uncheck them all? Thanks!
from nghierarchicalselector.
I found a way to reset the field. I created a pull request for you to check it out.
from nghierarchicalselector.
I don't think I ever did. How it was currently working was good enough, so I moved onto other things. I may revisit it again in the future and will update the issue if I discover anything new.
from nghierarchicalselector.
Related Issues (16)
- issue when selection and onSelectionChanged are bound to same scope variable HOT 3
- Evaluate how to deal with long lists without drawbacks on the user experience HOT 1
- set placeholder HOT 1
- Validation - Required field
- Regarding load asyncData with ngHierarchicalSelector
- Using the keyboard to navigate through items doesn't scroll if the item is out of the view area
- its missing ng-hierarchical-selector.templates.js file
- Initial input is not keyboard accessible (not focusable)
- multi-select mode with lots of tags renders strangely HOT 1
- Typo in readme.md
- Multiple Selected items can't fit into the dropdown display box and gets hidden when the tree appears. HOT 1
- Postback issue HOT 6
- Setting selection on multi-select HOT 1
- ng-model and ng-repeat syntax
- How to enable auto-complete and searching? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nghierarchicalselector.