pre-select an option if it is the only available one (#3337)
This commit is contained in:
@@ -205,7 +205,7 @@ export default class KimaiFormSelect extends KimaiPlugin {
|
|||||||
select.val(selectedValue);
|
select.val(selectedValue);
|
||||||
|
|
||||||
// pre-select an option if it is the only available one
|
// 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 allOptions = select.find('option');
|
||||||
const optionLength = allOptions.length;
|
const optionLength = allOptions.length;
|
||||||
let selectOption = '';
|
let selectOption = '';
|
||||||
|
|||||||
2
public/build/app.0cc41cd4.js
Normal file
2
public/build/app.0cc41cd4.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -3,7 +3,7 @@
|
|||||||
"app": {
|
"app": {
|
||||||
"js": [
|
"js": [
|
||||||
"build/runtime.b8e7bb04.js",
|
"build/runtime.b8e7bb04.js",
|
||||||
"build/app.a8c84f0c.js"
|
"build/app.0cc41cd4.js"
|
||||||
],
|
],
|
||||||
"css": [
|
"css": [
|
||||||
"build/app.7beab68a.css"
|
"build/app.7beab68a.css"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"build/app.css": "build/app.7beab68a.css",
|
"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.css": "build/invoice.ccdecd42.css",
|
||||||
"build/invoice.js": "build/invoice.19f36eca.js",
|
"build/invoice.js": "build/invoice.19f36eca.js",
|
||||||
"build/invoice-pdf.css": "build/invoice-pdf.e73a6dda.css",
|
"build/invoice-pdf.css": "build/invoice-pdf.e73a6dda.css",
|
||||||
|
|||||||
Reference in New Issue
Block a user