Add autofocus to import inputs (#240)

This commit is contained in:
Wojtek Mach 2021-04-24 11:15:37 +02:00 committed by GitHub
parent 6f60e075a0
commit c3a0b7c01d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -20,6 +20,7 @@ defmodule LivebookWeb.HomeLive.ImportContentComponent do
autocomplete: "off" %>
<%= textarea f, :content, value: @content, class: "input resize-none",
placeholder: "Notebook content",
autofocus: true,
spellcheck: "false",
rows: 5 %>

View file

@ -28,6 +28,7 @@ defmodule LivebookWeb.HomeLive.ImportUrlComponent do
autocomplete: "off" %>
<%= text_input f, :url, value: @url, class: "input",
placeholder: "Notebook URL",
autofocus: true,
spellcheck: "false" %>
<%= submit "Import",
class: "mt-5 button button-blue",