From b041a4ee6615c8b4e12f050c108ae431580aa820 Mon Sep 17 00:00:00 2001 From: Sam Schurter Date: Tue, 10 Nov 2020 17:10:00 -0600 Subject: [PATCH] implements Dogfalo#6602 --- Gruntfile.js | 3 ++- package.json | 1 + test/html/dropdown.html | 12 +++++++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 6b1ffa08f0..c41d8f4e6b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -105,7 +105,8 @@ module.exports = function(grunt) { 'transform-es2015-block-scoping', 'transform-es2015-classes', 'transform-es2015-template-literals', - 'transform-es2015-object-super' + 'transform-es2015-object-super', + 'babel-plugin-transform-object-rest-spread' ] }, bin: { diff --git a/package.json b/package.json index 39b65b531e..275a1b4da2 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "engine": "node >= 6", "devDependencies": { "autoprefixer": "^7.1.1", + "babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-preset-es2015": "^6.24.1", "grunt": "^1.0.1", "grunt-babel": "^6.0.0", diff --git a/test/html/dropdown.html b/test/html/dropdown.html index 231d509545..e1b421013e 100644 --- a/test/html/dropdown.html +++ b/test/html/dropdown.html @@ -9,17 +9,17 @@ - + - + - + @@ -621,7 +621,7 @@

Scrolling in absolute container

- + @@ -630,7 +630,9 @@

Scrolling in absolute container

$('#test-1, #test-11, #test-17, #test-18, #button4').dropdown({hover: true}); $('#test-2, #test-3, #test-19, #test-20').dropdown({coverTrigger: false, hover: true}); $('#test-14').dropdown({alignment: 'right', constrainWidth: false}); - $('#test-15, #test-24, #button5, #button6, #test-modal').dropdown(); + $('#test-15, #test-24, #button5, #button6').dropdown(); + $('#test-modal').dropdown({ container: document.body, coverTrigger: false }); + // $('#test-modal').dropdown(); $('#test-16, #test-22').dropdown({coverTrigger: false}); $('#test-12').dropdown({constrainWidth: false, alignment: 'left'}); $('#test-13, #test-21').dropdown({constrainWidth: false, alignment: 'right'});