Dropdown appears in sweetalert 2 when initializing materialize dropdowns
Author: ghostCreated Nov 8, 2018Updated Feb 17, 2025
Current behavior
A drop down menu appears in sweet alert 2 alerts when materialize is used and drop downs initialized. This occurs even if no input is specified for the alert.

Expected behavior
No dropdown to appear if it is not required as an input

Live demo
https://jsbin.com/peqatexaze/edit?html,js,output
You will notice the dropdown appear. Remove:
$(document).ready(function(){
$('select').formSelect();
});and the dropdown will no longer appear.
An issue has been opened with the creator here but he is unfamiliar with materialize so I thought an issue here may help solve this.
Source: Dogfalo/materialize