Skip to content

Commit

Permalink
Fix(web-twig): Do not render id twice in the HeaderDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
dlouhak authored and literat committed Sep 21, 2023
1 parent 7205145 commit 9350c8a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
{# Miscellaneous #}
{%- set _styleProps = useStyleProps(props) -%}
{%- set _classNames = [ _rootClassName, _styleProps.className ] -%}
{%- set _mainPropsWithoutId = props | filter((value, prop) => prop is not same as('id')) -%}

<dialog
{{ mainProps(props) }}
{{ mainProps(_mainPropsWithoutId) }}
{{ styleProp(_styleProps) }}
{{ classProp(_classNames) }}
id="{{ _id }}"
Expand Down

0 comments on commit 9350c8a

Please sign in to comment.