mirror of
https://github.com/Fabio286/antares.git
synced 2025-04-24 06:57:19 +02:00
fix: selected foreign key value not visible in the insert row modal
This commit is contained in:
parent
5b33419b64
commit
cba2ce2e37
@ -222,8 +222,16 @@ export default defineComponent({
|
|||||||
hightlightedIndex.value = 0;
|
hightlightedIndex.value = 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
watch(() => props.modelValue, (val) => {
|
||||||
|
internalValue.value = val;
|
||||||
|
});
|
||||||
|
|
||||||
|
watch(() => props.value, (val) => {
|
||||||
|
internalValue.value = val;
|
||||||
|
});
|
||||||
|
|
||||||
const currentOptionLabel = computed(() =>
|
const currentOptionLabel = computed(() =>
|
||||||
flattenOptions.value.find(d => d.value === props.modelValue)?.label
|
flattenOptions.value.find(d => d.value === internalValue.value)?.label
|
||||||
);
|
);
|
||||||
|
|
||||||
const select = (opt) => {
|
const select = (opt) => {
|
||||||
@ -382,7 +390,8 @@ export default defineComponent({
|
|||||||
.select {
|
.select {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
&:focus, &--open {
|
&:focus,
|
||||||
|
&--open {
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
foreignList: [],
|
foreignList: [],
|
||||||
currentValue: this.modelValue
|
currentValue: this.modelValue || null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -21,7 +21,7 @@ test('launch app', async () => {
|
|||||||
|
|
||||||
test('main window elements visibility', async () => {
|
test('main window elements visibility', async () => {
|
||||||
const visibleSelectors = [
|
const visibleSelectors = [
|
||||||
'#titlebar',
|
// '#titlebar',
|
||||||
'#window-content',
|
'#window-content',
|
||||||
'#settingbar',
|
'#settingbar',
|
||||||
'#footer'
|
'#footer'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user