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

Problem extending text field #5369

Closed
apademide opened this issue Jul 13, 2023 · 1 comment
Closed

Problem extending text field #5369

apademide opened this issue Jul 13, 2023 · 1 comment
Assignees
Milestone

Comments

@apademide
Copy link

Description

I'm trying to extend the text field but it appears to modify the markup and break the field: where the default text field uses <input>, the extended field uses <k-hello-input> making it unusable.
Reproducible with a 1:1 copy of https://getkirby.com/docs/reference/plugins/extensions/fields#extending-existing-fields

It appears to be very specific to the text field (number works, date works, textarea work; didn't test more advanced fields)

Screenshots
Using the exact field from the ref exemple above

text:
  type: text
  label: Text Field
hello:
  type: hello
  label: Hello Field
Capture d’écran 2023-07-13 à 14 39 03

Your setup

Kirby Version
4.0.0-alpha.4

Console output
blank

Your system (please complete the following information)

  • Device: MacBook
  • OS: macOS 13.0
  • Browser: Safari
@lukasbestle lukasbestle added this to the 4.0.0 milestone Jul 13, 2023
@distantnative
Copy link
Member

I don't think this is a v4 problem but already exists in v3.
The issue is that our text field automatically uses a k-TYPE-input, to automatically use k-url-input etc. when needed. So it's looking for a k-hello-input that does not exist.

@distantnative distantnative removed this from the 4.0.0 milestone Jul 25, 2023
@distantnative distantnative changed the title [v4] Problem extending text field Problem extending text field Jul 25, 2023
@distantnative distantnative self-assigned this Jul 25, 2023
@distantnative distantnative added this to the 3.9.7 milestone Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants