diff --git a/lib/livebook_web/live/file_select_component.ex b/lib/livebook_web/live/file_select_component.ex index b078d31da..bbb479aac 100644 --- a/lib/livebook_web/live/file_select_component.ex +++ b/lib/livebook_web/live/file_select_component.ex @@ -13,8 +13,7 @@ defmodule LivebookWeb.FileSelectComponent do # # * `:extnames` - a list of file extensions that should be shown # - # * `:submit_event` - the process event sent on form submission, - # use `nil` for no action + # * `:on_submit` - `%JS{}` to execute on form submission # # * `:target` - either a pid or `{component_module, id}` to send # events to @@ -41,7 +40,7 @@ defmodule LivebookWeb.FileSelectComponent do # Component default attribute values inner_block: nil, file_system_select_disabled: false, - submit_event: nil, + on_submit: nil, # State current_dir: nil, deleting_file: nil, @@ -100,14 +99,14 @@ defmodule LivebookWeb.FileSelectComponent do myself={@myself} />