fix(frontend): MkRange/MkSelectでdisabledが効かなくなっている問題を修正 (#16263)
* fix(frontend): MkRange/MkSelectでdisabledが効かなくなっている問題を修正 * Update Changelog * 誤字
This commit is contained in:
parent
a8abb03d17
commit
89ed8be8ff
|
@ -19,6 +19,7 @@
|
||||||
- Fix: プラグインをアンインストールしてもセーブデータが残る問題を修正
|
- Fix: プラグインをアンインストールしてもセーブデータが残る問題を修正
|
||||||
- Fix: 数時間後Misskeyのタブに戻った際に、タブがスロットリングされている間の更新アニメーションを延々見せ続けられる問題を修正
|
- Fix: 数時間後Misskeyのタブに戻った際に、タブがスロットリングされている間の更新アニメーションを延々見せ続けられる問題を修正
|
||||||
- Fix: 非ログイン時のハイライトノートの画像がCWの有無を考慮せず表示される問題を修正
|
- Fix: 非ログイン時のハイライトノートの画像がCWの有無を考慮せず表示される問題を修正
|
||||||
|
- Fix: レンジ選択・ドロップダウンにて、操作を無効にすべきところで無効にならない問題を修正
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
- Enhance: sinceId/untilIdが指定可能なエンドポイントにおいて、sinceDate/untilDateも指定可能に
|
- Enhance: sinceId/untilIdが指定可能なエンドポイントにおいて、sinceDate/untilDateも指定可能に
|
||||||
|
|
|
@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<div class="label">
|
<div class="label">
|
||||||
<slot name="label"></slot>
|
<slot name="label"></slot>
|
||||||
</div>
|
</div>
|
||||||
<div v-adaptive-border class="body">
|
<div v-adaptive-border class="body" :class="{ 'disabled': disabled }">
|
||||||
<slot name="prefix"></slot>
|
<slot name="prefix"></slot>
|
||||||
<div ref="containerEl" class="container">
|
<div ref="containerEl" class="container">
|
||||||
<div class="track">
|
<div class="track">
|
||||||
|
@ -180,6 +180,8 @@ function onMouseenter() {
|
||||||
let lastClickTime: number | null = null;
|
let lastClickTime: number | null = null;
|
||||||
|
|
||||||
function onMousedown(ev: MouseEvent | TouchEvent) {
|
function onMousedown(ev: MouseEvent | TouchEvent) {
|
||||||
|
if (props.disabled) return; // Prevent interaction if disabled
|
||||||
|
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
|
||||||
tooltipForDragShowing.value = true;
|
tooltipForDragShowing.value = true;
|
||||||
|
@ -292,6 +294,11 @@ function onMousedown(ev: MouseEvent | TouchEvent) {
|
||||||
border: solid 1px var(--MI_THEME-panel);
|
border: solid 1px var(--MI_THEME-panel);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
|
||||||
|
&.disabled {
|
||||||
|
pointer-events: none;
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
> .container {
|
> .container {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -174,7 +174,7 @@ watch([modelValue, () => props.items], () => {
|
||||||
}, { immediate: true, deep: true });
|
}, { immediate: true, deep: true });
|
||||||
|
|
||||||
function show() {
|
function show() {
|
||||||
if (opening.value) return;
|
if (opening.value || props.disabled || props.readonly) return;
|
||||||
focus();
|
focus();
|
||||||
|
|
||||||
opening.value = true;
|
opening.value = true;
|
||||||
|
|
Loading…
Reference in New Issue