github openvi-foundation/openvue 1.2.0

one hour ago

OpenVue 1.2.0 makes MultiSelect, Listbox and AutoComplete fast with very large lists, lets dropdowns hold other overlays in their header and footer, and keeps submenus open while you move the mouse towards them. It also fixes several Slider, InputNumber and keyboard issues.

All OpenVue packages are released together under this version.

Upgrade notes

Most apps need no changes. Two less common patterns behave differently:

  • Listbox, MultiSelect and AutoComplete with multiple: if you keep the selected values in a shallowRef or markRaw array and change it in place (for example with push), the component won't see the change. Replace the array instead: selected.value = [...selected.value, item]. The same applies to the options array for MultiSelect chip labels. Arrays in a ref or reactive work as before. (#560, #64, #728)
  • Chart: if you change the chart instance directly through getChart() or the loaded event, call chart.update() afterwards. Updating the data and options props works as before. (#306)

Highlights

Large selections

Listbox, MultiSelect and AutoComplete used to compare every option against every selected value on each render, so they slowed down as the selection grew. They now look selected values up directly. Selecting all of 100,000 options in MultiSelect no longer freezes the page, and chip labels no longer scan the whole option list.

If v-model holds objects, set optionValue or dataKey to get the full speedup. The Listbox docs now cover this, along with how to update the options and selected values arrays. (#560, #64, #728)

Overlays inside overlays

Select, MultiSelect, AutoComplete, CascadeSelect, TreeSelect and DatePicker now work with another overlay, such as a Select, DatePicker or Popover, in their header or footer slot. Picking a value in the inner overlay keeps the outer panel open, and a click outside closes the inner overlay first. The outer panel also closes on an outside click while it contains an expanded Panel or Accordion. (#571, #719, #720, #731, #733, #736)

Submenus

TieredMenu, ContextMenu, Menubar and MegaMenu keep the open submenu while the mouse moves diagonally towards it. Previously, passing over neighbouring items on the way opened their submenus instead. (#60)

Fixes

  • Slider snaps to the nearest step, so the first and last steps are easy to reach. PageUp and PageDown move by ten steps, and it emits only when the value changes. (#633)
  • InputNumber accepts digits in the locale's own numbering system, such as Persian digits with locale="fa-IR", and no longer drops the digit 1 in those locales. (#197)
  • InputNumber in currency mode reads typed numbers correctly when the currency symbol contains a dot. Typing 2 with AED and locale="ar-AE" used to give 200. (#257, #267)
  • InputOtp handles the Delete key: it removes the character in the current field, keeps the focus there and moves the following characters back, so pressing it again keeps deleting. (#529)
  • TreeSelect closes on the first outside click after you click its header, footer or empty message. It used to need a second click. (#735)
  • Chart no longer keeps the CPU busy with a stacked chart and parsing: false. (#306)
  • TabList no longer throws an error when its state changes after it is unmounted. (#723)
  • Password passes automated accessibility checks such as axe. Its input no longer sets aria-expanded, and the strength overlay no longer has role="dialog". (#132)

Updating

Update openvue and every @openvue/* package in your project to 1.2.0.

Full changelog: CHANGELOG.md · Compare 1.1.1...1.2.0

Don't miss a new openvue release

NewReleases is sending notifications on new releases.