Skip to content

Commit

Permalink
minor #1315 Fix code indentation for emit events (jmsche)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

Fix code indentation for emit events

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| Issues        | N/A
| License       | MIT

Currently there's both a numbering issue for the list & an indentation issue for code blocks:

![image](https://github.com/symfony/ux/assets/3929498/d57732e8-ce29-49a8-9edb-c3dba7da47c4)

This PR should fix this :)

Commits
-------

4190cf6 Fix code indentation for emit events
  • Loading branch information
weaverryan committed Dec 1, 2023
2 parents ab36ec8 + 4190cf6 commit dd7d24b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2319,12 +2319,12 @@ There are three ways to emit an event:

1. From Twig:

.. code-block:: html+twig
.. code-block:: html+twig

<button
data-action="live#emit"
data-event="productAdded"
>
<button
data-action="live#emit"
data-event="productAdded"
>

2. From your PHP component via ``ComponentToolsTrait``::

Expand Down

0 comments on commit dd7d24b

Please sign in to comment.