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

Improve pathname field #96

Open
Jamiewarb opened this issue Nov 7, 2024 · 0 comments
Open

Improve pathname field #96

Jamiewarb opened this issue Nov 7, 2024 · 0 comments

Comments

@Jamiewarb
Copy link
Member

Jamiewarb commented Nov 7, 2024

See #90 and #94

We've integrated the Pathname field from @tinloof/sanity-kit, but it has some issues that I'd like to look at addressing in the future:

  • When you create a new document that has a locked prefix, the prefix is editable. It locks upon changing fieldset or clicking in and out of the field
  • When no pathname has been entered into a field with a locked prefix, the required validation error doesn't trigger (as it technically has a value). This needs a neat way to be handled, as it should be the same as required in that no value is there

We can look to contribute these to the sanity-kit package directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant