Skip to content

Commit

Permalink
chore: rebuild assets
Browse files Browse the repository at this point in the history
  • Loading branch information
SteelWagstaff committed Dec 13, 2024
1 parent 9e0d83e commit 16ebd30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/scripts/routes/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export default {
$( '.header__nav' ).toggleClass( 'header__nav--active' );
} );
} );
// Props to Dave Rupert: https://daverupert.com/2017/11/happier-html5-forms/
const inputs = document.querySelectorAll( 'input, textarea' );

// Check form field validity when focus changes
const inputs = document.querySelectorAll( 'input, textarea' );
inputs.forEach( input => {
input.addEventListener('invalid', () => {
input.classList.add('error');
Expand Down

0 comments on commit 16ebd30

Please sign in to comment.