fix: 修复精选图片链接输入框的 type=url 原生校验问题
This commit is contained in:
1 parent
19f5f3e7c5
commit
47e0ac34aa
1 file changed
+4
-1
@@ -170,8 +170,11 @@
|
||||
|
||||
<div class="tab-content">
|
||||
{#if activeTab === 'url'}
|
||||
<!-- 用 text 而非 url:该输入框不参与提交(无 name),但 type=url 的原生校验会
|
||||
因为相对路径等非法值而静默拦截整个表单提交 -->
|
||||
<input
|
||||
type="url"
|
||||
type="text"
|
||||
inputmode="url"
|
||||
placeholder="输入或粘贴图片链接"
|
||||
bind:value={cover}
|
||||
class="full-width-input"
|
||||
|
||||
Reference in new issue
Block a user