mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-07 05:24:40 +08:00
Skip padding when encoding the confirmation modal id
This commit is contained in:
parent
d297eee919
commit
8bb8160605
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ defmodule LivebookWeb.Helpers do
|
|||
# TODO: this ensures unique ids when navigating across LVs.
|
||||
# Remove once https://github.com/phoenixframework/phoenix_live_view/issues/1903
|
||||
# is resolved
|
||||
lv_id = self() |> :erlang.term_to_binary() |> Base.encode32()
|
||||
lv_id = self() |> :erlang.term_to_binary() |> Base.encode32(padding: false)
|
||||
assigns = assign_new(assigns, :id, fn -> "confirm-modal-#{lv_id}" end)
|
||||
|
||||
~H"""
|
||||
|
|
Loading…
Add table
Reference in a new issue