diff options
author | Laussel Loïc <loic.laussel@orange.com> | 2020-10-02 17:40:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 17:40:20 +0300 |
commit | 24572b157793c0d762f56314786df18aba3d6212 (patch) | |
tree | a0854ce1b54b62b3cc92dd6935cad22330b85d5f /.bundlewatch.config.json | |
parent | d9b4426b0729d23105aa8597ed050aa7af647c9f (diff) |
buttons plugin : avoid multiple change event trigger (#31000)
- add unit test to count how many events are thrown when widget contains multiple tags inside label
- add a parameter to toggle, if click event is provided onto an input then don't trigger another change event already thrown by the browser
- simplify the case where toggle interface is called click provide from input itself OR it's a button without label. If label is present, then browser propagate click event from childrens through label and then cause multiple calls to toggle
- the test assumes that `.btn` class is always set onto the label if there's one, otherwise need to update this plugin and look for label around the input
Test with keyboard, mouse and js click call
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to '.bundlewatch.config.json')
-rw-r--r-- | .bundlewatch.config.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.bundlewatch.config.json b/.bundlewatch.config.json index e12dda9181..fb76d8dd83 100644 --- a/.bundlewatch.config.json +++ b/.bundlewatch.config.json @@ -26,7 +26,7 @@ }, { "path": "./dist/js/bootstrap.bundle.js", - "maxSize": "47.50 kB" + "maxSize": "47.5 kB" }, { "path": "./dist/js/bootstrap.bundle.min.js", @@ -34,7 +34,7 @@ }, { "path": "./dist/js/bootstrap.js", - "maxSize": "25 kB" + "maxSize": "25.5 kB" }, { "path": "./dist/js/bootstrap.min.js", |