@marianmeres/stuic 2.1.4 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -369,11 +369,16 @@
369
369
 
370
370
  // "inner" submit
371
371
  function try_submit(force = false) {
372
- // clog("try_submit", innerValue);
372
+ // clog("try_submit", innerValue, _selectedColl.dump());
373
373
  if (innerValue) {
374
374
  let found = have_option_label_like(_optionsColl.items, innerValue);
375
+ // clog("found", found, allowUnknown, _selectedColl.dump());
375
376
  if (!found && !allowUnknown) {
376
- return notifications?.error(t("select_from_list"), { ttl: 1000 });
377
+ if (isMultiple && _selectedColl.size) {
378
+ // this is actually ok... (not simplifying the outer if so its easily readable)
379
+ } else {
380
+ return notifications?.error(t("select_from_list"), { ttl: 1000 });
381
+ }
377
382
  }
378
383
 
379
384
  if (!found && !_optionsColl.size) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",