mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
refactor(editor): Replace this.$props (no-changelog) (#5928)
* refactor(editor): Replace this. (no-changelog) * Lintfix
This commit is contained in:
@@ -34,12 +34,12 @@ export default Vue.extend({
|
||||
},
|
||||
mounted() {
|
||||
// autofocus on input element is not reliable
|
||||
if (this.$props.autofocus && this.$refs.input) {
|
||||
if (this.autofocus && this.$refs.input) {
|
||||
this.focus();
|
||||
}
|
||||
|
||||
if (this.$props.eventBus) {
|
||||
this.$props.eventBus.on('focus', () => {
|
||||
if (this.eventBus) {
|
||||
this.eventBus.on('focus', () => {
|
||||
this.focus();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user