Skip to content

Commit

Permalink
fix showPicker may throw if not in a same origin
Browse files Browse the repository at this point in the history
or if readonly / disabled and so on
  • Loading branch information
gdh1995 committed Jul 29, 2024
1 parent 78ea248 commit a0dfeb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/async_dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ export const showPicker_ = (element: HTMLInputElement | HTMLSelectElement
: OnFirefox && !getEditableType_<0>(element)) {
// on Firefox 101-128, input[type=color].showPicker is always blocked due to lack of user activation
} else {
element.showPicker!()
safeCall(() => element.showPicker!())
}
}
}
Expand Down

0 comments on commit a0dfeb0

Please sign in to comment.