Fix minor issues (#5919)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2024-06-26 20:38:33 +05:00 committed by GitHub
parent 27454ca707
commit f1cc06fc57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 13 additions and 3 deletions

View File

@ -98,7 +98,7 @@
class:iconOnly
disabled={loading || disabled}
use:tp={tooltip}
on:click|stopPropagation
on:click|stopPropagation|preventDefault
on:keydown
>
{#if loading}

View File

@ -65,7 +65,7 @@
class:error
class:disabled
style:width
on:click={() => {
on:click|stopPropagation={() => {
if (!autoAction) element?.focus()
}}
>

View File

@ -304,6 +304,12 @@
size={'small'}
label={setting.string.EnterOptionTitle}
on:keydown={handleKeydown}
on:blur={() => {
newValue = newValue.trim()
if (!newValue.length) return
add()
newItem = false
}}
bind:value={newValue}
width={'100%'}
autoFocus

View File

@ -238,6 +238,10 @@
size={'small'}
label={setting.string.EnterOptionTitle}
on:keydown={handleKeydown}
on:blur={() => {
add()
newItem = false
}}
bind:value={newValue}
width={'100%'}
autoFocus

View File

@ -85,7 +85,7 @@ export { StatePresenter, StateRefPresenter, TaskKindSelector, TypeStatesPopup }
async function editStatuses (object: Project, ev: Event): Promise<void> {
const loc = getCurrentLocation()
loc.path[2] = 'setting'
loc.path[3] = 'statuses'
loc.path[3] = 'spaceTypes'
loc.path[4] = object.type
navigate(loc)
}