Giter VIP home page Giter VIP logo

Comments (8)

DaveInTO avatar DaveInTO commented on August 26, 2024 2

Happens to be whenever I put it in a v-for loop using vuejs.

from bootstrap4-toggle.

p4k1tz avatar p4k1tz commented on August 26, 2024 1

While using it, if I navigate directly to the page it renders, but when routing it displays as a normal checkbox. I am using Angular 8

from bootstrap4-toggle.

josmanalastas avatar josmanalastas commented on August 26, 2024 1

Using the Initialize with JavaScript option seems to have solved the issue on my part, issue only happens when you use the Initialize with HTML option

from bootstrap4-toggle.

gitbrent avatar gitbrent commented on August 26, 2024

This is news to me. If anyone else is experiencing this, feel free to chime in.

from bootstrap4-toggle.

p4k1tz avatar p4k1tz commented on August 26, 2024

I tried loading the js in the onInit method, and that would render the toggle, but on a page reload or direct route, it would not toggle. The fix for me was to use the bootstrapToggle API to set it to on or off in the onInit method. It is a bit clunky to work that way since you have to mind the initial state and change it on init, but it works.

from bootstrap4-toggle.

xbaha avatar xbaha commented on August 26, 2024

the issue happened to mee too.
i have multiple toggle buttons, that has exact same code, most of them loads, and some stay as a checkbox, when i reload the page, they all reload!

from bootstrap4-toggle.

sml1990 avatar sml1990 commented on August 26, 2024

I'm having a similar experience. Event with 18 toggles on the same page, the plain checkbox with no styling is rendered first and then the toggle styling is applied after about a split second. This is a visible and abrupt change from plain checkbox to styled toggle. This is happening on the latest versions of Chrome, Edge (Chromium version), Brave, and Opera at time of writing and my machine is a Ryzen5 six-core with 16GB of RAM running W10. Same issue on my Android phone which is a Pixel running the latest version of Android. It is also happening on this page for me: https://gitbrent.github.io/bootstrap4-toggle/

from bootstrap4-toggle.

xbaha avatar xbaha commented on August 26, 2024

It's clearly a bug, no consistent behavior, but it always happens.
I gave up on this version and moved to bs5 where it has toggle supported natively.

from bootstrap4-toggle.

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.