Skip to content

Commit

Permalink
fix: The select is not working properly (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessy2 committed Feb 2, 2024
1 parent dac27c0 commit 6410dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/writing.html
Expand Up @@ -860,7 +860,7 @@ <h5 class="portlet__head">Webhook</h5>
default:
//特殊处理select类型,要保证option存在,否则取第一个option
if ($e.tagName === "SELECT" &&
$e.querySelector(`option[value="${conf[name]}]`) === null) {
$e.querySelector(`option[value="${conf[name]}"]`) === null) {
$e.value = $e.querySelector("option")?.value;
conf[name] = $e.value||"";
}
Expand Down

0 comments on commit 6410dad

Please sign in to comment.