Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix translation input blur on revert to old value #10068

Merged
merged 1 commit into from Dec 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/src/interfaces/translations/translations.vue
Expand Up @@ -54,7 +54,7 @@ import { useI18n } from 'vue-i18n';
import api from '@/api';
import { useCollection } from '@directus/shared/composables';
import { unexpectedError } from '@/utils/unexpected-error';
import { cloneDeep, isEqual, assign } from 'lodash';
import { cloneDeep, isEqual, assign, isNil } from 'lodash';
import { notEmpty } from '@/utils/is-empty';
import { useWindowSize } from '@/composables/use-window-size';
import useRelation from '@/composables/use-m2m';
Expand Down Expand Up @@ -279,7 +279,7 @@ export default defineComponent({
(newVal, oldVal) => {
if (
newVal &&
newVal !== oldVal &&
isNil(newVal) !== isNil(oldVal) &&
newVal?.every((item) => typeof item === 'string' || typeof item === 'number')
) {
loadItems();
Expand Down