sib-form-auto-completion : not working on edit forms when the field value is not null
See the following JSbin : The project n°9 has some representatives associated to it, and its edit form fails with the following error :
TypeError: this.querySelector(...) is nullsib-multiple-select.js:34:34
The project n°10 has no associated representative, and its form displays flawlessly.
Fiddle code just in case :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script type="module" src="https://unpkg.com/@startinblox/core@0.7"></script>
</head>
<body>
<h1>Project n°9</h1>
<sib-form
data-fields="name, objective, representatives"
label-name="Nom"
label-objective="Objectif"
widget-representatives="sib-form-auto-completion"
range-representatives="https://u4e.happy-dev.fr/api/representatives/"
multiple-representatives="sib-multiple-select"
data-src="https://u4e.happy-dev.fr/api/actiongroups/9/"
></sib-form>
<h1>Project n°10</h1>
<sib-form
data-fields="name, objective, representatives"
label-name="Nom"
label-objective="Objectif"
widget-representatives="sib-form-auto-completion"
range-representatives="https://u4e.happy-dev.fr/api/representatives/"
multiple-representatives="sib-multiple-select"
data-src="https://u4e.happy-dev.fr/api/actiongroups/10/"
></sib-form>
</body>
</html>
Edited by Ghost User