Skip to content

Commit

Permalink
Update FlashAlert.php
Browse files Browse the repository at this point in the history
if there are several messages of the same type, the identifier is duplicated
  • Loading branch information
rushstart authored Feb 16, 2022
1 parent 67454f5 commit 6fd8391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FlashAlert.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function run()
'body' => $message,
'closeButton' => $this->closeButton,
'options' => array_merge($this->options, [
'id' => $this->getId().'-'.$type.'-'.$appendClass,
'id' => $this->getId().'-'.$type.'-'.$i,
'class' => $this->alertTypes[$type].$appendClass
])
]);
Expand All @@ -68,4 +68,4 @@ public function run()
$session->removeFlash($type);
}
}
}
}

0 comments on commit 6fd8391

Please sign in to comment.