Skip to content

Unexpected output detected is displayed twice #1741

@mvorisek

Description

@mvorisek

code to reproduce:

$form = \Atk4\Ui\Form::addTo($app);
$recipient = $form->addControl(
    'recipient',
    [\Atk4\Ui\Form\Control\Dropdown::class,
        'isMultiple' => true,
        'dropdownOptions' => ['allowAdditions' => true, 'forceSelection' => false],
    ],
    ['default' => 'Username <user@emaildomain.de>']
);
$form->onSubmit(function () use ($form) {
    echo '<pre>';
    echo htmlspecialchars(
        print_r($form->model->get(), true)
    );
});

click on submit button:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions