Giter Club home page Giter Club logo

Comments (7)

randdusing avatar randdusing commented on July 26, 2024 1

@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.

lukemurray avatar lukemurray commented on July 26, 2024 1

If you get it working, submit a PR please :) Sorry haven't had any time to give this some love

from nghierarchicalselector.

arielcr avatar arielcr commented on July 26, 2024

@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.

lukemurray avatar lukemurray commented on July 26, 2024

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.

arielcr avatar arielcr commented on July 26, 2024

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.

arielcr avatar arielcr commented on July 26, 2024

Hi @lukemurray @randdusing

I found a way to reset the field. I created a pull request for you to check it out.

from nghierarchicalselector.

randdusing avatar randdusing commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.