<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>earthminami</author_name>
  <author_url>https://blog.hatena.ne.jp/earthminami/</author_url>
  <blog_title>chidimi blog</blog_title>
  <blog_url>https://earthminami.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>はじめに vue3 composition APIでautofocusを実装するのが結構大変だったので忘備録として書いておく。 autofocusの定義 unruffled-roentgen-467661.netlify.app 例えば、componentが更新されたときに、input要素に自動的にフォーカスを当てたいときなどがある。 この新規作成ボタンをクリックして編集モードになったとき、 このinput要素に自動でフォーカスされているとユーザーフレンドリーだと思う。 これを実現したい。 実装方法 結論としては、カスタムディレクティブを使用し、コンポーネントのmount, updateのタイ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fearthminami.hatenablog.com%2Fentry%2F2021%2F08%2F08%2F161645&quot; title=&quot;vue3 composition APIでautofocusを実装する - chidimi blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/e/earthminami/20210808/20210808160847.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-08-08 16:16:45</published>
  <title>vue3 composition APIでautofocusを実装する</title>
  <type>rich</type>
  <url>https://earthminami.hatenablog.com/entry/2021/08/08/161645</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
