aboutsummaryrefslogtreecommitdiff
path: root/js/src/dropdown.js
AgeCommit message (Collapse)AuthorFilesLines
2018-07-12Ship v4.1.2Mark Otto1-2/+2
2018-06-25feat(dropdown): add original click eventjakubhonisek1-0/+4
2018-06-03refactor(plugins): query elements without jqueryJohann-S1-5/+8
2018-06-01refactor(plugins): improve how we query elementsJohann-S1-2/+2
2018-04-30Bump version to v4.1.1v4.1.1Mark Otto1-2/+2
2018-04-09Ship v4.1.0 (#26218)v4.1.0Mark Otto1-2/+2
* update docs path from docs/4.0/ to docs/4.1/ * bump version to 4.1.0 * Update redirects to work for 4.1 docs move * Update docs version switcher to include latest and link to 4.0 docs * re-run dist * Update package-lock.json * Update docs-navbar.html
2018-03-26Fix skip element disabled via attribute when using keyboard navigationvsn4ik1-1/+1
2018-02-21Consistent usage of $(document.body) instead of $('body') (#25671)Martijn Cuppens1-2/+2
2018-02-11Dropdown - Allow to disable Popper.js style (#24092)Johann-S1-2/+10
* Dropdown - Allow to disable Popper.js style * Update dropdown.js * Update dropdown.html * copy changes
2018-01-21Update dropdown.js to allow referenceElement (#25219)719media1-8/+17
2018-01-18Bump version to 4.0.0Mark Otto1-2/+2
2018-01-11Comply to the new rules.XhmikosR1-43/+32
2017-12-31Update devDependencies and gems. (#25083)XhmikosR1-0/+1
2017-12-28Update version to 4.0.0-beta.3v4.0.0-beta.3Mark Otto1-2/+2
2017-12-12dropdown: add boundary config option (#24976)Troy Morehouse1-3/+15
2017-11-13Object spread : less jQuery more ES6 (#24665)Johann-S1-7/+9
2017-10-30Do not create a Popper.js instance when we don't need itJohann-S1-21/+18
2017-10-29Throw error about Popper.js only when it's needed because some of our ↵Johann-S1-8/+8
plugins don't use it (#24573)
2017-10-29Add dropright and dropleft (right and left placements for our dropdown) (#23860)Johann-S1-2/+12
* Add dropright (right placement for our dropdown) * Add dropleft * moves drop left arrow to the left
2017-10-27Fix unit tests.Johann-S1-14/+1
2017-10-27Dropdown handle keydown on input and textarea.Pierre-Denis Vanduynslager1-2/+24
2017-10-24Change Rollup config to wrap our dist files with jQuery instead of $Johann-S1-2/+2
2017-10-23Add `Util.jQuery` which will detect jQuery instead of relying on global `$` ↵Johann-S1-1/+1
(#24513)
2017-10-19fix version numberMark Otto1-2/+2
2017-10-19new version numberMark Otto1-2/+2
2017-10-04Use imported jQuery objectJohann-S1-1/+1
2017-10-03Offset option for dropdown can be function (#24222)Roman O1-4/+11
* Offset option can be function (Popper.js) * Fix...add function type for offset option * Remove constants for popper config * Optimize code. Remove foreach loop. * Refactoring. Remove getOffset method
2017-09-07Remove placement attribute from our Dropdown pluginJohann-S1-9/+2
2017-08-31Create a bundled release of Bootstrap with Popper.js insideJohann-S1-4/+4
2017-08-23Tweak ESLint rules.XhmikosR1-2/+2
2017-08-10bump to betav4.0.0-betaMark Otto1-2/+2
2017-07-04Dropdown - Disable applyStyle modifier instead of removing inline style ↵Johann-S1-7/+3
applied by Popper.js
2017-06-17Detect if the dropdown is in a navbar or not when update is calledJohann-S1-0/+1
2017-06-17Some .navbar .dropdown-menu optimisation (#22776)Catalin Zalog1-15/+0
2017-06-17Reset Popper.js styles for Dropdowns in navbarJohann-S1-16/+51
2017-06-16fix some errors in our jsJohann-S1-5/+3
2017-05-22Better management of dropdown/dropup with alignmentJohann-S1-22/+26
2017-05-17Use popper to align dropdown menu instead of using css with importantJohann-S1-3/+28
2017-05-14Use _jQueryInterface for Dropdown to call toggle methodJohann-S1-28/+26
2017-05-14Add fallbackPlacement option for Tooltip and PopoverJohann-S1-1/+2
2017-05-14Allow to disable flip behaviour on Dropdown + documentationJohann-S1-2/+12
2017-05-14Add an update method to allow to update position for ↵Johann-S1-0/+6
Tooltip/Popover/Dropdown manually
2017-05-14Better placement for Dropdown + Handle flip of Tooltip/PopoverJohann-S1-2/+2
2017-05-14Remove totaly Tether from documentation + dependenciesJohann-S1-3/+3
2017-05-14Handle dropup for DropdownJohann-S1-2/+9
2017-05-14Fix unit tests + Update Popper to 1.6.0Johann-S1-6/+8
2017-05-14Remove constraints option and check every optionsJohann-S1-8/+6
2017-05-14Begin to use Popper for DropdownJohann-S1-8/+90
2017-04-20Tweak iOS hack for dropdownPatrick H. Lauke1-2/+2
Tweak to https://github.com/twbs/bootstrap/pull/22426, where the wrong selector slipped through the net (selecting all of `<body>`s grand-children rather than children)
2017-04-14Replace dropdown backdrop hack with cleaner JS-only hackPatrick H. Lauke1-14/+9
* Replace backdrop with simple noop mouse listener As discussed in https://github.com/twbs/bootstrap/pull/22422 the current approach of injecting a backdrop (to work around iOS' broken event delegation for the `click` event) has annoying consequences on touch-enabled laptop/desktop devices. Instead of a backdrop `<div>`, here we simply add extra empty/noop mouse listeners to the immediate children of `<body>` (and remove them when the dropdown is closed) in order to force iOS to properly bubble a `click` resulting from a tap (essentially, method 2 from https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html) This is sufficient (except in rare cases where the user does manage to tap on the body itself, rather than any child elements of body - which is not very likely in an iOS phone/tablet scenario for most layouts) to get iOS to get a grip and do the correct event bubbling/delegation, meaning the regular "click" event will bubble back to the `<body>` when tapping outside of the dropdown, and the dropdown will close properly (just like it already does, even without this fix, in non-iOS touchscreen devices/browsers, like Chrome/Android and Windows on a touch laptop). This approach, though a bit hacky, has no impact on the DOM structure, and has no unforeseen side effects on touch-enabled laptops/desktops. And crucially, it works just fine in iOS. * Remove dropdown backdrop styles * Update doc for dropdowns and touch-enabled devices