Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Entry disappears when the title is not a text field #358

Open
cloetensbrecht opened this issue Dec 29, 2023 · 0 comments
Open

Entry disappears when the title is not a text field #358

cloetensbrecht opened this issue Dec 29, 2023 · 0 comments

Comments

@cloetensbrecht
Copy link
Contributor

In this example we would like to use a selected project as the title of the entry:

{
  title: alinea.link.entry("Project", {
    max: 1
  }),
  path: alinea.path("Path", {
    hidden: true,
  })
}

Problems with this configuration:

  • The 'create new` modal is not showing the 'Project link selector' but it displays a default text input
  • Once added a title within the modal, the entry is added. But when we select the correct project and save it, the entry disappears

A workaround for now is to add the project as a second field. But this is not the desired goal as the user need to add the project twice now:

{
  title: alinea.text("Project"),
  project: alinea.link.entry("Project", {
    max: 1
  }),
  path: alinea.path("Path", {
    hidden: true,
  })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant