未显示的选择动态元素是positalizecss模态
当我尝试添加选项元素以在Svelte中选择“ sevelte”,“选择”选择不显示元素。我在
模态代码样本:
<div id="modal1" class="modal modal-fixed-footer" style="overflow: hidden; width: 80%">
<div class="modal-content">
<h4>Add a new locationName</h4>
<select>
<option value="" disabled selected>Choose your option</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
<select bind:value={locationName.languageId} label="label goes here">
{#each languages as listItem}
<option value={listItem.id}>
{listItem.name}
</option>
{/each}
</select>
<ol>
{#each languages as listItem}
<li>{listItem.name}</li>
{/each}
</ol>
</div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很可能问题不是物质化,因为它只是一个样式库。我的怀疑是您所提供的数据缺少某些字段。
请参阅此补充,并检查您是否正在提供相同的模式。
Most probably the issue is not with materialize as it's just a styling library. My suspect is the data you are providing is missing some fields.
Please refer to this REPL and check if you are providing the data with same schema.
https://svelte.dev/repl/cba91d7ceb6c4ae48c9c2ace8f916be9?version=3.48.0