diff --git a/.github/prlint.json b/.github/prlint.json index a7ea9b70..bfd5dfca 100644 --- a/.github/prlint.json +++ b/.github/prlint.json @@ -1,7 +1,7 @@ { "title": [ { - "pattern": "^(feat|fix|docs|style|refactor|perf|test|chore):\\s", + "pattern": "^(feat|fix|docs|style|refactor|perf|test|chore|BREAKING CHANGE):\\s", "flags": ["i"], "message": "PR title doesn't match conventional commit message specs. See https://conventionalcommits.org/" } diff --git a/README.md b/README.md index bf95e1f7..b89db1af 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ A lightweight and fast control to render a select component that can display hie - [radioSelect](#radioSelect) - [showPartiallySelected](#showpartiallyselected) - [showDropdown](#showDropdown) + - [showDropdownAlways](#showDropdownAlways) - [form states (disabled|readOnly)](#formstates) - [id](#id) - [Styling and Customization](#styling-and-customization) @@ -341,6 +342,12 @@ Type: `bool` (default: `false`) If set to true, shows the dropdown when rendered. This can be used to render the component with the dropdown open as its initial state. +### showDropdownAlways + +Type: `bool` + +If set to true, always shows the dropdown when rendered, and toggling dropdown will be disabled. + ### form states (disabled|readOnly) Type: `bool` (default: `false`) diff --git a/__snapshots__/src/index.test.js.md b/__snapshots__/src/index.test.js.md index 0b9b76f1..599fb5a8 100644 --- a/__snapshots__/src/index.test.js.md +++ b/__snapshots__/src/index.test.js.md @@ -407,4 +407,154 @@ Generated by [AVA](https://ava.li). /> + Snapshot 1 + +