pgrimard / react-toggle-switch Goto Github PK
View Code? Open in Web Editor NEWiOS inspired toggle switch
License: MIT License
iOS inspired toggle switch
License: MIT License
The latest doc change indicates you can indirectly toggle the switch via the "on" prop, but not having an onClick still throws an undefined err.
Could your provide the non-minified version of the css also?
In Bootstrap before 4.1.2, XSS is possible in the collapse data-parent attribute.
In Bootstrap before 4.1.2, XSS is possible in the data-target property of scrollspy.
In Bootstrap before 4.1.2, XSS is possible in the data-container property of tooltip.
In Bootstrap before 3.4.1 and 4.3.x before 4.3.1, XSS is possible in the tooltip or popover data-template attribute.
All inside react-toggle-switch/docs/scripts/bundle.min.js
IMO the float:right
in .switch
is not necessary...it even causes minor layout issues.
Keyboard users are currently not able to interact with or toggle a Switch
.
Within src/scripts/switch.js
, add a tabIndex="0"
and onKeyPress={e => (enabled ? onClick(e) : onDisabledClick(e))}
to the returned containing div
.
Add a proper keypress handler that only listens for enter
(keycode 13
) and space
(keycode 32
).
Hi
Thanks for your plugin, Could you please add this feature props ?
I'd like to implement the 3rd state between on / off because I need to handle an "processing" method that could pass or fail.
I've been getting that warning in my app since I updated react. Tracked it down to this plugin.
react-toggle-switch does not support react 15.x .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.