Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Resolve #1733
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Sep 16, 2024
1 parent 6f4f6bf commit e0236ea
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions vendors/bootstrap/less/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ input {
}
}

//input:invalid,
input:user-invalid {
background-color: var(--error-bg-clr, #f2dede);
border-color: var(--error-border-clr, #eed3d7);
color: var(--error-clr, #b94a48);
}

// Position radios and checkboxes better
input[type="radio"],
Expand Down
3 changes: 2 additions & 1 deletion vendors/knockout/build/output/knockout-latest.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ ko.utils = {
: node => node.cloneNode(true)),

setDomNodeChildren: (domNode, childNodes) => {
// domNode.replaceChildren(...childNodes);
ko.utils.emptyDomNode(domNode);
childNodes && domNode.append(...childNodes);
},
Expand Down Expand Up @@ -2821,7 +2822,7 @@ ko.bindingHandlers['textInput'] = {
elementValueBeforeEvent = timeoutHandle = undefined;

var elementValue = element.value;
if (previousElementValue !== elementValue) {
if (element.checkValidity() && previousElementValue !== elementValue) {
// Provide a way for tests to know exactly which event was processed
previousElementValue = elementValue;
ko.expressionRewriting.writeValueToProperty(valueAccessor(), allBindings, 'textInput', elementValue);
Expand Down
4 changes: 2 additions & 2 deletions vendors/knockout/build/output/knockout-latest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendors/knockout/src/binding/defaultBindings/textInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ko.bindingHandlers['textInput'] = {
elementValueBeforeEvent = timeoutHandle = undefined;

var elementValue = element.value;
if (previousElementValue !== elementValue) {
if (element.checkValidity() && previousElementValue !== elementValue) {
// Provide a way for tests to know exactly which event was processed
previousElementValue = elementValue;
ko.expressionRewriting.writeValueToProperty(valueAccessor(), allBindings, 'textInput', elementValue);
Expand Down

0 comments on commit e0236ea

Please sign in to comment.