Posted 11 March 2024, 5:48 am EST - Updated 11 March 2024, 5:54 am EST
We encountered this error following an update to Wijmo ‘5.20232.939’ from ‘5.20202.699’.
Here is an example demonstrating when the error occurs. We have used a wjPopup binding, and in the JS viewmodel, a knockout observable was utilized before applying the binding. This triggers the appearance of a console error. It appears to be specific to the wjPopup component. The error says ‘You cannot apply bindings multiple times to the same element’.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link href="https://cdn.mescius.com/wijmo/5.20232.939/styles/wijmo.min.css" rel="stylesheet" />
</head>
<body>
<div data-bind="wjPopup:{}"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.5.1/knockout-latest.js"></script>
<script src="https://cdn.mescius.com/wijmo/5.20232.939/controls/wijmo.min.js"></script>
<script src="https://cdn.mescius.com/wijmo/5.20232.939/controls/wijmo.input.min.js"></script>
<script src="https://cdn.mescius.com/wijmo/5.20232.939/interop/knockout/wijmo.knockout.min.js"></script>
<script>
this.model = {
dialog: ko.observable()
}
ko.applyBindings(this.model);
</script>
</body>
</html>
Attaching a screenshot of the console error and an HTML file containing the above-mentioned example, the error can be found in the browser console by simply opening the file.