pre-select an option if it is the only available one (#3337)

This commit is contained in:
Kevin Papst
2022-05-31 17:38:21 +02:00
committed by GitHub
parent 184026f5f1
commit 889e3c0d4a
6 changed files with 5 additions and 5 deletions

View File

@@ -205,7 +205,7 @@ export default class KimaiFormSelect extends KimaiPlugin {
select.val(selectedValue);
// pre-select an option if it is the only available one
if (select.val() === '') {
if (select.val() === '' || select.val() === null) {
const allOptions = select.find('option');
const optionLength = allOptions.length;
let selectOption = '';

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -3,7 +3,7 @@
"app": {
"js": [
"build/runtime.b8e7bb04.js",
"build/app.a8c84f0c.js"
"build/app.0cc41cd4.js"
],
"css": [
"build/app.7beab68a.css"

View File

@@ -1,6 +1,6 @@
{
"build/app.css": "build/app.7beab68a.css",
"build/app.js": "build/app.a8c84f0c.js",
"build/app.js": "build/app.0cc41cd4.js",
"build/invoice.css": "build/invoice.ccdecd42.css",
"build/invoice.js": "build/invoice.19f36eca.js",
"build/invoice-pdf.css": "build/invoice-pdf.e73a6dda.css",