Skip to content

Commit e45b6ce

Browse files
committed
Remove console.logs
1 parent 229d3c3 commit e45b6ce

File tree

1 file changed

+1
-5
lines changed
  • NHSUKViewComponents.Web/Views/Shared/Components/DateInput

1 file changed

+1
-5
lines changed

NHSUKViewComponents.Web/Views/Shared/Components/DateInput/Default.cshtml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,14 @@
104104
105105
const errorElement = document.getElementById('date-error');
106106
for (let field of fields) {
107-
console.log('id: ', field.id)
108107
const inputElement = document.getElementById(field.id);
109-
console.log('el: ', inputElement)
110108
111109
inputElement.addEventListener('input', function (event) {
112-
console.log(event)
110+
113111
if (event.inputType === 'deleteContentBackward') {
114112
return;
115113
}
116114
117-
118115
const value = event.data;
119116
const min = parseInt(inputElement.getAttribute('min'));
120117
const max = parseInt(inputElement.getAttribute('max'));
@@ -125,7 +122,6 @@
125122
126123
setTimeout(function () {
127124
if (value < 1 || value > max || !value.match(/^[0-9]*$/)) {
128-
console.log('not matched')
129125
inputElement.value = inputElement.value.slice(0, -1) + 1;
130126
inputElement.value = inputElement.value.slice(0, -1);
131127
inputElement.setAttribute('aria-invalid', 'true');

0 commit comments

Comments
 (0)