This means that Vue keeps a representation of all of the nodes in our app in memory. Vue, like some other frameworks, uses a virtual DOM (VDOM) to manage elements. In order to set focus, we need to understand a little bit more about how Vue works internally. We'll also want to put focus back on the "Edit" button when a user cancels or saves their edit.
To give users a better experience, we'll add code to control the focus so that it gets set to the edit field when the edit form is shown.
Similarly, if you save or cancel your edit, focus will disappear again as you move back to the non-edit view. In addition, what happens when you press Tab again varies depending on the browser you're using. The checkbox will be replaced with our edit component, but the focus outline will be gone. One more time, and focus should be on the first "Edit" button.
While we do have working edit functionality, we aren't providing a great experience for non-mouse users. Express Tutorial Part 7: Deploying to production.Express Tutorial Part 6: Working with forms.Express Tutorial Part 5: Displaying library data.Express Tutorial Part 4: Routes and controllers.Express Tutorial Part 3: Using a database (with Mongoose).Express Tutorial Part 2: Creating a skeleton website.Express tutorial: The Local Library website.Setting up a Node (Express) development environment.Express Web Framework (Node.js/JavaScript) overview.Express Web Framework (node.js/JavaScript).Tutorial Part 11: Deploying Django to production.Tutorial Part 10: Testing a Django web application.Tutorial Part 8: User authentication and permissions.Tutorial Part 6: Generic list and detail views.Tutorial Part 5: Creating our home page.Tutorial Part 2: Creating a skeleton website.Setting up your own test automation environment.Building Angular applications and further resources.Advanced Svelte: Reactivity, lifecycle, accessibility.Dynamic behavior in Svelte: working with variables and props.Vue conditional rendering: editing existing todos.Adding a new todo form: Vue events, methods, and models.Ember Interactivity: Footer functionality, conditional rendering.Ember interactivity: Events, classes and state.Ember app structure and componentization.React interactivity: Editing, filtering, conditional rendering.Client-side web development tools index.