CHANGELOG.md 32.9 KB

v1.13.18 (2020-06-26)

Bug Fixes

  • #1342: Bootstrap select doesn't send field data on form submit (set form attribute on select element to fix)
  • #2402: In Internet Explorer, with liveSearchPlaceholder enabled, can't select option while searchBox is focused. Also, selected option doesn't get scrolled to when opening menu
  • #2464: title attribute does not work in 1.13.17 (Safari)
  • #2469: Shift-Tab key not working in 1.13.17
  • #2474: With multiple selects, cannot select options with keyboard after using mouse to select options
  • #2483: Dropdown with unselectable index 0 will not scroll to top on arrow_down with last index selected
  • #2491: remove placeholder/title option when destroying selectpicker

v1.13.17 (2020-05-07)

Bug Fixes

  • #478: tab key skips selectpicker inputs on Mac (Safari)
  • #1023: if title/placeholder enabled, select value changes when pressing back in browser
  • #1828: selectpicker('mobile') not working on iOS
  • #2448: Incorrect dropdown style when Bootstrap 4 version is not auto detected since 1.13.13

v1.13.16 (2020-04-24)

Bug Fixes

  • #2380: Specifying a Title and OptGroups creates a redundant divider
  • #2381: Tick/check mark rendering in Firefox
  • #2391: setStyle fails if newElement.parentNode is a document fragment
  • #2393: liHeight does not consider custom option content when computing li height
  • #2442: Using a class in optgroup results in an error on refresh in chrome
  • #2445: Problem with refresh and selected item
  • #2446: Bootstrap select property dataApiKeydownHandler error

v1.13.15 (2020-04-20)

Bug Fixes

  • #2430: hasOwnProperty error with jQuery 3.5.0
  • #2439: error setting bootstrapKeydown if Bootstrap not yet loaded

v1.13.14 (2020-04-17)

Bug Fixes

  • #2436: TypeError: Cannot read property 'content' of undefined
  • #2437: If a select has the title attribute set (and is not a multiple select), selecting an option doesn't update the value in the button

Translations

  • #2195: Improve CZ translations
  • #2274: Improve JP translations
  • #2196: Add Serbian translations
  • #2340: Add Thai translations

v1.13.13 (2020-04-16)

Bug Fixes

  • #2339: data-size="false" not working
  • #2337: calling deselectAll/selectAll immediately after page load throws error
  • #2320: Dropup becomes a dropdown upon search
  • #2308: Keyboard control over Bootstrap Dropdown components stops working
  • #2272: Class bs-placeholder is no longer set on "default" values in 1.13.10
  • #2352: "Deselect All" doesn't consistently work with virtual scroll

v1.13.12 (2019-10-10)

Bug Fixes

  • #2176: allow was-validated class to work on select elements without selectpicker class
  • #2321: CTRL + F5 not working while dropdown is open
  • #2308: Keyboard control over Bootstrap Dropdown components stops working
  • #2275: Bug: Event duplication on refresh
  • #2273: "precompiled bootstrap" link is broken in README

Improvements

  • #2243: change liveSearch input type from "text" to "search"

v1.13.11 (2019-09-19)

Bug Fixes

  • #2263: Selecting non-existent option throws error in v1.13.10
  • #2266: Desired width of dropdown menu breaks after resizing window
  • #2285: bootstrap-select throws javascript error with jquery slim
  • #2289: Multiple ticks in optgroup with data-max-options defined as "1"
  • #2326: In IE11, options aren't visible when moving to bottom via "up" arrow key if select has an optgroup

v1.13.10 (2019-04-19)

Bug Fixes

  • #1219: Keyboard navigation not working when searching and virtualScroll is false
  • #2109: elements with .form-control class don't adjust height properly since Bootstrap 4.1.3
  • #2126: showTick option not working as expected
  • #2153: Screen reader doesn't read elements in expanded list (NVDA and JAWS)
  • #2251: A standard select with a selected option doesn't scroll to the selected option if inside an optgroup
  • #2253: hideDisabled and selectedTextFormat: count not working correctly if disabled options are selected
  • #2256: selected option styling is not updated if .selectpicker('val', x) is called while dropdown menu is open
  • #2258: menu size doesn't update when virtualScroll is disabled while the menu is open

v1.13.9 (2019-03-29)

Bug Fixes

  • #2022: selected class is not removed properly when virtualScroll is disabled and choosing options at the bottom of the select
  • #2106: setting BootstrapVersion option still shows console warning
  • #2126: setting show-tick class doesn't work
  • #2232: Every 'refresh' appends a new span.check-mark
  • #2233: server-side error: HTMLSelectElement is not defined
  • #2234: position bootstrap-select behind input field
  • #2235: Mobile native menu not accessible
  • #2236: JS errors are thrown when using bootstrap select on js-generated select (after calling destroy())
  • #2239: Setting styleBase and empty style result in exception
  • #2244: val() method fires changed.bs.select, but the select's previousValue is not passed through
  • #2245: some default Bootstrap 4 styles are not being set when using BootstrapVersion
  • #2248: width: fit in IE collapses button with text overflowing

v1.13.8 (2019-03-15)

Bug Fixes

  • #1969: Does not work with form-inline from bootstrap
  • #2229: The height of menu is calculated incorrectly with extra css
  • #2231: Sanitizer error on large single selects without virtualScroll and one option selected

v1.13.7 (2019-03-12)

Bug Fixes

  • #2046: val() method incorrectly fires a native change event
  • #2109: The height of the select doesn't auto-size with multi-line options
  • #2213: button height wrong if using an older doctype
  • #2220: js folder missing in bower_components/bootstrap-select/dist
  • #2221: style option can no longer include multiple styles
  • #2224: auto width (data-width="auto") not working
  • #2226: Selecting option by typing is not working correctly

v1.13.6 (2019-03-08)

Bug Fixes

  • #1321: remove extra files from bower release
  • #1665: performance improvements
  • #1832: use on and trigger event handlers instead of click and change shorthand
  • #2078: Elements in an input group below a selectpicker have a higher z-index, causing them to appear above the opened menu
  • #2150: Live search discards the first typed character
  • #2163: Cannot read property 'top' of undefined (ensure container exists)
  • #2166: Sub options display separately instead of as 1 list
  • #2187: move bulk of logic into a setTimeout for faster page load
  • #2189: Empty select refresh error "Cannot read property 'classList' of undefined"
  • #2198: "Cannot read property '0' of undefined" when dropupAuto is false and the select is at the bottom of the page
  • #2199: Escaped tags parsed as non-escaped in title and data-content
  • #2202: always update menu size after updates to live search
  • #2206: Map file for minified js version does not work correctly
  • #2210: An extra divider is added if an optgroup is the last visible element and there are hidden options after it
  • #2217: The bottom divider of an optgroup disappears when searching and one of the options in the optgroup is hidden

Security

  • #2199: Fixed an XSS vulnerability with data-content, data-subtext, and title options. Implemented a new HTML sanitizer for data-content.

v1.13.5 (2018-12-11)

Bug Fixes

  • #2160: Selects with a title option throw an error in the render function

v1.13.4 (2018-12-11)

Bug Fixes

  • #1710: When listening for keydown event on .bs-searchbox, ensure it is a child of .bootstrap-select
  • #1943: Option dropdownAlignRight auto doesn't work
  • #2034: Uncaught TypeError: Cannot read property '0' of undefined
  • #2082: button vertical alignment
  • #2105: Dynamically added picker causes resize JS error
  • #2118: Memory leak: getPlacement resize & scroll
  • #2140: data-hidden broken in v1.13.0
  • #2151: This plugins broken when the version of IE below 10

Documentation

  • #2125: add styleBase option to documentation

New Features


v1.13.3 (2018-10-15)

Bug Fixes

  • #1425: Don't render checkMark (tickIcon) if showTick is false or the select is not multiple
  • #1828: Select not working on mobile
  • #2045: 'auto' width not working
  • #2086: Cannot read property 'display' of undefined
  • #2092: Cannot read property 'className' of undefined
  • #2101: Extra tick mark when using livesearch in Bootstrap 4

v1.13.2 (2018-08-27)

Bug Fixes

  • #1999: selected styling removed from previous option in a multiselect
  • #2024: Arrow down key doesn't scroll the view to the top when virtualScroll is disabled
  • #2027: data-max-options="1" not removing selected class
  • #2029: LiveSearch and "Select All" selects too many options
  • #2033: Dividers broken on bootstrap 4
  • #2035: Selectbox with live search throwing error when UP/DOWN key is pressed
  • #2038: Select / Deselect All buttons are modifying disabled options
  • #2044: When data-container is set, first click resets scroll position
  • #2045: 'auto' width not working
  • #2047: Optgroup labels are escaped
  • #2058: Menu hight is not properly calculated when using data-size and styling the options' height
  • #2079: Subtext is difficult to read on active options

New Features

  • #1972: add option to manually specify Bootstrap's version
  • #2036: Add support for Bootstrap dropdown's display property added in v4.1.0

v1.13.1 (2018-04-23)

Bug Fixes

  • #2076: HTML content in the subtext get escaped in 1.13.0
  • #2073: Error retrieving Bootstrap version
  • #2073: Bower description is too long
  • #2071: noneSelectedText not working

v1.13.0 (2018-04-19)

Bug Fixes

  • #2060: form control sizing classes not working
  • fix sass variable syntax
  • #2062: popper error when bootstrap-select is in a navbar
  • #1913:   causing formatting errors on MacOS
  • #2061: unnecessary caret code with Bootstrap 4
  • #2065: .empty() method is not working
  • #2063: New-lines in options cause formatting issues with title attribute (if multiple options selected)
  • #2064: Purely numeric data-subtext breaks live search
  • #2066: Button padding when using data-width="fit" is incorrect
  • #2067: input group addons not displaying properly
  • #2077: selectAll performance in Edge is abysmal
  • #2074: show-menu-arrow not displaying properly
  • #2068: Bootstrap 4 validation pseudo classes not being applied properly when new options are appended dynamically
  • #2070: popover-title is not popover-header in Bootstrap 4
  • #2075: liveSearch with data-content not working
  • #2072: Button text breaks to the next line when using form-control as styleBase (Bootstrap 4)
  • #2069: Placeholder text is unreadable on darker buttons (btn-primary, btn-success, etc.)
  • #1691: XSS vulnerability in option title

New Features

  • #1404, #1697: changed.bs.select now passes through previousValue as the third parameter (instead of the previous value of the option, which was redundant). This is the value of the select prior to being changed.
  • update jQuery range to make v1.9.1 the minimum (and exclude version 4)

v1.13.0-beta (2018-02-12)

Bug Fixes

  • #1034: Issue with long option inside input-group

New Features

  • #1135: Support Bootstrap 4 (via auto-detection)
  • virtualization is now optional via virtualScroll. Can be set to false, true, or an integer to only use virtualization if the select has more than the specified number of options. Defaults to 600.
  • update docs to support MkDocs v0.17.0

v1.13.0-alpha (2017-07-28)

Bug Fixes

  • #1303: val() method doesn't fire changed.bs.select
  • #1383: Croatian locale is not cro_CRO. Renamed to hr_HR
  • #1395: title option position not correct when adding options dynamically
  • #1398: trigger setSize on refresh event
  • #1674: Fix li tags inside option being treated as options
  • #1692: Live Search Box Not Cleared After Selection

New Features

  • #710: focus on selectpicker triggers focus on actual select, allowing for event listeners
  • #1110: 'active' class is only applied when liveSearch is on
  • #1229: Large lists and virtualization
  • #1687: Improve init performance

v1.12.4 (2017-07-19)

Bug Fixes

  • #1286: Event creation throws illegal constructor error on stock Android Browser < 5.0
  • #1764: Bootstrap-select steals focus on form.checkValidity

v1.12.3 (2017-07-06)

Bug Fixes

  • #1529: add selectAllText and deselectAllText to translation files (used Google Translate)
  • #1604: Keydown improvements
  • #1630: htmlEscape inline style
  • #1631: Livesearch performance

New Features

  • Add/update various translations

v1.12.2 (2017-01-30)

Bug Fixes

  • #1563: key word searching broken in #1516.
  • #1570: properly adjust size when inside form-group-sm or form-group-lg
  • #1590: menu height calculated improperly when using liveSearch and input has custom height

v1.12.1 (2016-11-22)

Bug Fixes

  • #1167, #1366: using a method before initializing bootstrap-select throws an error

v1.12.0 (2016-11-18)

Bug Fixes

  • #1220: unescape button title
  • #1348: escape HTML for optgroup label
  • #1506: Fix bs-placeholder usage for jQuery>=3.0
  • #1509: inline style Content Security Policy
  • #1477: using liveSearchNormalize and liveSearchStyle="startsWith" simultaneously breaks search
  • #1489 fix selectOnTab with liveSearch enabled which was broken when #1489 was fixed
  • #1533: remove touchstart event listener (issues with FastClick)
  • remove destroyLi function - improve refresh() performance
  • #1531: add Spanish (Spain) translations
  • #1553: don't use replace in normalizeToBase if text is undefined (throws error otherwise)

New Features

  • #1503: Add windowPadding option (either a number or an array of numbers - [top, right, bottom, left])
  • #1516: Improve liveSearch performance (addresses #1275)
  • #1440: allow HTML in placeholder title for non-multiple selects
  • #1555: Use default with SCSS variables

v1.11.2 (2016-09-09)

Bug Fixes

  • fix sourceMappingURL in bootstrap-select.min.js

v1.11.1 (2016-09-09)

Bug Fixes

  • #1475: fix Cannot read property 'apply' of null error
  • #1484: Change events fire twice on IE8
  • #1489: hide.bs.select and hidden.bs.select events not fired when "Esc" key pressed with live search enabled

v1.11.0 (2016-08-16)

Bug Fixes

  • #1291: don't trigger change event if selecting an option that passes the limit
  • #1284: check if all options are already selected/deselected before triggering changed/changed.bs.select
  • #1245, #1310: With livesearch, when keypress, focus to search field isn't working with some characters
  • #1257: fix issue with Norwegian translation
  • #1346: fix edge case where default values are not respected when initializing the plugin
  • #1338: improve support for disabled optgroups and hidden options
  • #1373: prevent selectAll and deselectAll from being called on standard select boxes
  • #1363: if hideDisabled is enabled, and all options in an optgroup are disabled, the optgroup is still visible
  • #1422: fix menu position inside a scrolling container
  • #1451: fix select with input-group-addon on both sides
  • #1465: changed.bs.select not firing for native mobile menu
  • #1459: jQuery 3 support - $.expr[':'] -> $.expr.pseudos

New Features

  • #1139: add placeholder styling via bs-placeholder class
  • #1290: auto close the menu if maxOptions is set to 1 (instead of leaving open)
  • #1127, #1016, #1160, #1269: add 'auto' option for dropdownAlignRight
  • 58ed408: support using a string for maxOptionsText
  • #541: ARIA - Accessibility

v1.10.0 (2016-02-17)

Bug Fixes

  • #1268: performance bug in clickListener
  • #1273: html5 validation message disappears in Chrome 47+
  • #1295: hide select by default (so there is no flash of unstyled content)

New Features

  • #950: add .selectpicker('toggle') method to allow menu to be open/closed programmatically
  • #1272: add showTick option
  • #1284: selectAll and deselectAll now trigger the changed.bs.select event

Add Lithuanian translations.


v1.9.4 (2016-01-18)

Bug fixes

  • #1250: don't destroy original select when using destroy method
  • #1230: Optgroup label missing when first option is disabled and hideDisabled is true

Add new translations.


v1.9.3 (2015-12-16)

Bug fixes

  • Fix #1235 - issue with selects that had form-control class