Skip to content

Eel expression doesn't work on props #1

@jonnitto

Description

@jonnitto

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions