@opengovsg/mockpass 4.0.5 → 4.0.6
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.
package/package.json
CHANGED
|
@@ -398,7 +398,7 @@ function redirectID() {
|
|
|
398
398
|
const optionsList = document.getElementById("id-datalist");
|
|
399
399
|
let optionsMap = new Map();
|
|
400
400
|
for (let i=0; i<optionsList.options.length; i++) {
|
|
401
|
-
optionsMap.set(optionsList.options[i].value, optionsList.options[i].dataset.
|
|
401
|
+
optionsMap.set(optionsList.options[i].value, optionsList.options[i].dataset.asserturl);
|
|
402
402
|
}
|
|
403
403
|
if (optionsMap.has(idInput.value)) {
|
|
404
404
|
const assertURL = optionsMap.get(idInput.value);
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
<input id="id-input" list="id-datalist" class="btn btn-secondary dropdown-toggle" oninput="redirectID()" placeholder= "Select Username" style="width: 100%; border: 2px solid #ccc; border-radius: 5px; background: white; color: rgb(42, 45, 51); text-align: left;">
|
|
170
170
|
<datalist class="dropdown-menu" id="id-datalist" aria-labelledby="id-input" >
|
|
171
171
|
{{#values}}
|
|
172
|
-
<option value="{{ id }}" data-
|
|
172
|
+
<option value="{{ id }}" data-asserturl="{{ assertURL }}">{{ id }}</option>
|
|
173
173
|
{{/values}}
|
|
174
174
|
</datalist>
|
|
175
175
|
</div>
|