From 6e2938bb37df563f8ae3299d6360d43f11307aa3 Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 6 Jul 2015 15:15:08 -0400 Subject: [PATCH] #2525 Remove toggle on multiple dropdown touchstart, fix tap color --- RELEASE-NOTES.md | 1 + src/definitions/modules/dropdown.js | 2 +- src/definitions/modules/dropdown.less | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index c4f12083d..58b883ee9 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -8,6 +8,7 @@ - **Segment** - Fixed incorrect margin set on `attached segment` #2503 - **Card** - `centered cards` variation now works similar to `centered card`. #2520 - **Checkbox** - Fixed issue in chrome where radio checkbox would appear incorrectly when no default value was selected #2505 +- **Dropdown** - Fixed transparent tap color not being set correctly. Removed toggle behavior from touch events on multiple dropdown. #2524 - **Checkbox** - Fixed issue where radio checkbox were not properly receiving `checked` class #2506 - **Tab** - Tab now correctly obeys `cache` setting. Removed use of API's local caching by default. #2493 - **Form** - `reset` will no longer clear values if no default value is found #2504 diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 56cc11f48..fd887623e 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -473,7 +473,7 @@ $.fn.dropdown = function(parameters) { if( module.is.searchSelection() ) { // do nothing special yet } - else { + else if( module.is.single() ) { $module .on('touchstart' + eventNamespace, module.event.test.toggle) ; diff --git a/src/definitions/modules/dropdown.less b/src/definitions/modules/dropdown.less index 17f0769d6..42d64f189 100755 --- a/src/definitions/modules/dropdown.less +++ b/src/definitions/modules/dropdown.less @@ -27,10 +27,11 @@ cursor: pointer; position: relative; display: inline-block; - tap-highlight-color: rgba(0, 0, 0, 0); outline: none; text-align: left; transition: @transition; + + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } /*******************************