Code Monkey home page Code Monkey logo

Comments (16)

frapontillo avatar frapontillo commented on May 29, 2024

Could you please do 2 things?

  1. Try out the latest develop branch of angular-bootstrap-switch
  2. Reference a plunker where the issue is clear

Thanks.

from angular-bootstrap-switch.

Splaktar avatar Splaktar commented on May 29, 2024

Verified that it is reproducible with latest develop version of angular-bootstrap-switch.
Working on a plunker.

from angular-bootstrap-switch.

Splaktar avatar Splaktar commented on May 29, 2024

Plunker here: http://plnkr.co/edit/pyAhiI?p=preview

from angular-bootstrap-switch.

burakkilic avatar burakkilic commented on May 29, 2024

+1 I have the same issue.

from angular-bootstrap-switch.

frapontillo avatar frapontillo commented on May 29, 2024

Setting up an interval to solve this seems pretty hackish... Do you guys feel like this is an AngularJS issue? It surely looks like that to me.

from angular-bootstrap-switch.

dlwhiteman avatar dlwhiteman commented on May 29, 2024

I don't think this is an AngularJS issue because I am also experimenting with another 3rd party switch widget, and it is not having this problem.

from angular-bootstrap-switch.

Splaktar avatar Splaktar commented on May 29, 2024

Another fix that I had to do for an internal directive was to put a $scope.watch on the isolated scope attributes coming into the directive. AngularJS wasn't keeping them in sync with the outside scope changes. Using the watch allowed late changes to the outside model to be reflected within the directive.

Either this is a bug in AngularJS or a new requirement for how isolated scope is supposed to work. I haven't figured out which yet.

from angular-bootstrap-switch.

treyhoover avatar treyhoover commented on May 29, 2024

Has there been any progress on this? I'm facing the same issue.

from angular-bootstrap-switch.

frapontillo avatar frapontillo commented on May 29, 2024

I haven't had any time to work on this, sadly. I will gladly accept PRs that do not make use of polling or any terrible hacky workaround.

from angular-bootstrap-switch.

treyhoover avatar treyhoover commented on May 29, 2024

Actually, it seems to be fixed for me in v0.4.0-alpha.1.

from angular-bootstrap-switch.

j-r-t avatar j-r-t commented on May 29, 2024

it happened to me using the non angular bootstrap switch and quite funny how I stumbled across this thread randomly considering ive been using both. it appears it is a bug in bootstrap switch library IMO.

i worked around by initing the switch upon showing the tab - best I could do for now.

from angular-bootstrap-switch.

frapontillo avatar frapontillo commented on May 29, 2024

@jessertaylor are you able to put up an issue on the bootstrap-switch repository?

from angular-bootstrap-switch.

j-r-t avatar j-r-t commented on May 29, 2024

@frapontillo will do

from angular-bootstrap-switch.

leewisestamp avatar leewisestamp commented on May 29, 2024

Any update on this?

from angular-bootstrap-switch.

frapontillo avatar frapontillo commented on May 29, 2024

@leewisestamp the parent bug hasn't been fixed yet.

from angular-bootstrap-switch.

albertjose avatar albertjose commented on May 29, 2024

Someone got something to fix this issue?

from angular-bootstrap-switch.

Related Issues (20)

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.