mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 02:30:21 -06:00
Fixed an issue where the cursor was not visible in the code tab of the trigger dialog.
This commit is contained in:
parent
6b6efd1c4d
commit
41a3345101
@ -467,6 +467,11 @@ export default class TriggerSchema extends BaseUISchema {
|
||||
_.isUndefined(tfunction) ||
|
||||
tfunction !== 'Inline EDB-SPL');
|
||||
},
|
||||
depChange: (state) => {
|
||||
if (state.tfunction == null) {
|
||||
return { prosrc: '' };
|
||||
}
|
||||
}
|
||||
},{
|
||||
id: 'is_sys_trigger', label: gettext('System trigger?'), cell: 'text',
|
||||
type: 'switch', disabled: obj.inSchemaWithModelCheck, mode: ['properties'],
|
||||
|
@ -479,6 +479,7 @@ export default function CodeMirror({currEditor, name, value, options, events, re
|
||||
editor.current.setOption('readOnly', false);
|
||||
editor.current.removeKeyMap('Tab');
|
||||
editor.current.removeKeyMap('Shift-Tab');
|
||||
cmWrapper.current.classList.remove(classes.hideCursor);
|
||||
}
|
||||
}
|
||||
}, [readonly, disabled]);
|
||||
|
Loading…
Reference in New Issue
Block a user