mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-24 15:16:07 +09:00
fixes
This commit is contained in:
parent
9b16ff6db1
commit
72bb1e8828
@ -338,7 +338,6 @@ async function openSearchFilters(ev) {
|
||||
os.inputDate({
|
||||
title: "Posts before"
|
||||
}).then((res) => {
|
||||
inputEl.value.focus();
|
||||
if (res.canceled) return;
|
||||
inputValue.value += " before:" + res.result;
|
||||
});
|
||||
@ -351,7 +350,6 @@ async function openSearchFilters(ev) {
|
||||
os.inputDate({
|
||||
title: "Posts after"
|
||||
}).then((res) => {
|
||||
inputEl.value.focus();
|
||||
if (res.canceled) return;
|
||||
inputValue.value += " after:" + res.result;
|
||||
});
|
||||
|
@ -194,14 +194,14 @@ function close(ev, opts: { useSendAnimation?: boolean } = {}) {
|
||||
if (props.src) props.src.style.pointerEvents = "auto";
|
||||
showing = false;
|
||||
emit("close");
|
||||
if (!noReturnFocus) {
|
||||
if (!props.noReturnFocus) {
|
||||
focusedElement.focus();
|
||||
}
|
||||
}
|
||||
|
||||
function onBgClick() {
|
||||
if (contentClicking) return;
|
||||
if (!noReturnFocus) {
|
||||
if (!props.noReturnFocus) {
|
||||
focusedElement.focus();
|
||||
}
|
||||
emit("click");
|
||||
|
@ -492,7 +492,7 @@ export function inputDate(props: {
|
||||
{
|
||||
done: (result) => {
|
||||
resolve(
|
||||
result
|
||||
(result && isFinite(new Date(result.result)))
|
||||
? { result: new Date(result.result), canceled: false }
|
||||
: { canceled: true },
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user