Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Ivona <[email protected]>
  • Loading branch information
fabio-ivona committed Nov 29, 2022
1 parent 786a659 commit 2960e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/tools/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ window.axios.handle = (error, $form = null, messages = {}) => {

let $input = $($form[0].elements[normalized_field]);

if(!$input.hasClass("hide-validation-message")){
if(!$input.hasClass("hide-validation-message") && $input.closest('.hide-validation-message').length === 0){
let $feedback = $input.find('~.invalid-feedback');
if ($feedback.length === 0) {
$feedback = $("<div class='invalid-feedback'></div>");
Expand Down

0 comments on commit 2960e28

Please sign in to comment.