refactor(editor): Replace this.$props (no-changelog) (#5928)
* refactor(editor): Replace this. (no-changelog) * Lintfix
This commit is contained in:
@@ -16,7 +16,7 @@ export default Vue.extend({
|
||||
let value = (this.value as string).replace(/\s/g, '.'); // force input to expand on space chars
|
||||
if (!value) {
|
||||
// @ts-ignore
|
||||
value = this.$props.placeholder;
|
||||
value = this.placeholder;
|
||||
}
|
||||
|
||||
return `${value}`; // adjust for padding
|
||||
|
||||
@@ -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