We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a2c01c commit 84aaac4Copy full SHA for 84aaac4
resources/js/components/fieldtypes/bard/Image.vue
@@ -28,8 +28,8 @@
28
@paste.stop
29
>
30
<Input
31
+ ref="alt"
32
name="alt"
- :focus="showingAltEdit"
33
v-model="alt"
34
:placeholder="assetAlt"
35
:prepend="__('Alt Text')"
@@ -156,6 +156,12 @@ export default {
156
alt(alt) {
157
this.updateAttributes({ alt });
158
},
159
+
160
+ showingAltEdit(showingAltEdit) {
161
+ if (showingAltEdit) {
162
+ this.$nextTick(() => this.$refs.alt.focus());
163
+ }
164
+ },
165
166
167
methods: {
0 commit comments