Skip to content

[Bug]: Select Component - Incomplete Prop Merging Leads to Missing Features #13

@swarakaka

Description

@swarakaka

Description

When using the Select component from the laravilt/forms package, features such as the "Add Button" and the "Create Option Form" do not render on the frontend, even when they are explicitly configured in the PHP component. This issue appears to stem from an incomplete or incorrect merging of essential props and attributes during the data transfer process from the PHP backend to the Vue.js frontend component.

Steps to Reproduce

  1. Configure a Select component in a Laravel application using laravilt/forms.
  2. Enable the createOptionForm feature (e.g., by calling $form->select('field')->createOptionForm(...)).
  3. Render the form containing the Select component.
  4. Observe the rendered Select component in the browser.

Expected Behavior

The "Add Button" and the "Create Option Form" should be visible and functional within the Select component, allowing users to dynamically add new options.

Actual Behavior

The "Add Button" and the "Create Option Form" are not displayed in the Select component, preventing users from utilizing these features.

Package Version

1.0

PHP Version

8.4

Laravel Version

12

Metadata

Metadata

Assignees

No one assigned

    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