Skip to content

Commit 0835722

Browse files
committed
fix searchable select fields options limitation to 50 options
1 parent bc2c118 commit 0835722

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG.md
22

3+
## unreleased
4+
- in the form component, searchable `select` fields now support more than 50 options. They used to display only the first 50 options.
5+
- ![screenshot](https://github.com/lovasoa/SQLpage/assets/552629/40571d08-d058-45a8-83ef-91fa134f7ce2)
6+
37
## 0.23.0 (2024-06-09)
48

59
- fix a bug in the [csv](https://sql.ophir.dev/documentation.sql?component=csv#component) component. The `separator` parameter now works as expected. This facilitates creating excel-compatible CSVs in european countries where excel expects the separator to be `;` instead of `,`.

sqlpage/tomselect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ function sqlpage_select_dropdown() {
77
// This is a workaround to fix that
88
const is_focused = s === document.activeElement;
99
const tom = new TomSelect(s, {
10-
create: s.dataset.create_new
10+
create: s.dataset.create_new,
11+
maxOptions: null,
1112
});
1213
if (is_focused) tom.focus();
1314
}

0 commit comments

Comments
 (0)