remove console.log(
This commit is contained in:
@@ -12,7 +12,6 @@ export function displayFormErrors(error: any, form: HTMLElement|null = null) {
|
||||
export function displayError(key: string, message: string, form: HTMLElement|null = null) {
|
||||
const formBase = (form) ? form : document
|
||||
const input = formBase.querySelector(`input[name="${key}"], select[name="${key}"], textarea[name="${key}"]`)
|
||||
console.log(input)
|
||||
if (input) {
|
||||
const formControl = input.closest('.form-control')
|
||||
if (formControl) {
|
||||
|
||||
Reference in New Issue
Block a user