Bugfix: Cannot write a value to a ko.computed unless you specify a 'write' option

This commit is contained in:
djmaze 2021-12-31 12:28:43 +01:00
parent e52316bb08
commit ac2238a23f
4 changed files with 54 additions and 50 deletions

2
dev/External/ko.js vendored
View file

@ -7,7 +7,7 @@ ko.bindingHandlers.tooltipErrorTip = {
init: (element, fValueAccessor) => {
doc.addEventListener('click', () => {
let value = fValueAccessor();
ko.isObservable(value) && value('');
ko.isObservable(value) && !ko.isComputed(value) && value('');
element.removeAttribute('data-rainloopErrorTip');
});
},