UNPKG

showcar-ui

Version:

Showcar-ui is the pattern library that is used to build the frontend of AutoScout24. It provides CSS classes, custom elements and components.

11 lines (7 loc) 606 B
<h2>Custom dropdown default<span class="status refactor">Needs refactoring</span><span class="status js">JS</span></h2> If the options list in the select is too big, you might need an user-friendly scrollbar: just add `scrollable` attribute on `<custom-dropdown>` tag (see examples below).<br> If you want to use it in a react (or preact) project you might need to use `shouldComponentUpdate` method to avoid unexpected state changes.<br />Just add it as a method of you class: `shouldComponentUpdate() { return false; }` More info & examples here: https://preactjs.com/guide/external-dom-mutations