Skip to content

Commit fffbb31

Browse files
committed
Use || instead of ??
1 parent a019afa commit fffbb31

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tags.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ class Tags {
323323
// beforeinput e.data is null on firefox
324324
// don't use them! rely on actual value
325325
this._searchInput.addEventListener("input", (ev) => {
326-
const data = ev.target.value.replace(ev.target.dataset.tmp ?? "", "");
326+
const data = ev.target.value.replace(ev.target.dataset.tmp || "", "");
327327
// Add item if a separator is used
328328
// On mobile or copy paste, it can pass multiple chars (eg: when pressing space and it formats the string)
329329
if (data) {

0 commit comments

Comments
 (0)