Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Eel expression doesn't work on props #1

Open
jonnitto opened this issue Nov 4, 2023 · 0 comments
Open

Eel expression doesn't work on props #1

jonnitto opened this issue Nov 4, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jonnitto
Copy link
Member

jonnitto commented Nov 4, 2023

Describe the bug

Eel expression doesn't work on the props tab

Expected behaviour

The eel expression get interpreted

Steps to reproduce

Given AFX

<p>{Array.join(props.array, ' || ')}</p>
<p>{props.eel}</p>
<p>{props.nested}</p>

and given props:

array:
  - one
  - two
  - three
eel: ${Array.join(['one', 'two', 'three'], ' || ')}
nested: ${Array.join(this.array, ' || ')}

Output should be

<p>one || two || three</p>
<p>one || two || three</p>
<p>one || two || three</p>

but is

<p>one || two || three</p>
<p>${Array.join(['one', 'two', 'three'], ' || ')}</p>
<p>${Array.join(this.array, ' || ')}</p>

Version

2.0.0 and 1.0.0

PHP version

PHP 8.1.23 (cli) (built: Oct  6 2023 10:11:51) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.23, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.23, Copyright (c), by Zend Technologies
@jonnitto jonnitto added the bug Something isn't working label Nov 4, 2023
@jonnitto jonnitto self-assigned this Nov 4, 2023
@jonnitto jonnitto transferred this issue from another repository Nov 4, 2023
@jonnitto jonnitto assigned davidspiola and unassigned jonnitto Nov 4, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants