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

Form submit on change not working for date type #260

Closed
tim-x-y-z opened this issue Apr 4, 2024 · 1 comment · Fixed by #261
Closed

Form submit on change not working for date type #260

tim-x-y-z opened this issue Apr 4, 2024 · 1 comment · Fixed by #261
Milestone

Comments

@tim-x-y-z
Copy link
Contributor

The form object doesn't submit when date is changed. This makes it hard to use date in inline forms.

class FilterForm(pydantic.BaseModel):
    country: str = Field(json_schema_extra={'search_url': '/api/forms/search', 'placeholder': 'Filter by Country...'})
    date_tung: date = Field(title='Date Tung', json_schema_extra={'format': 'date'})
[...]
        c.ModelForm(
            model=FilterForm,
            submit_url='.',
            initial=filter_form_initial,
            method='GOTO',
            submit_on_change=True,
            display_mode='inline',
        ),
[...]
@tim-x-y-z
Copy link
Contributor Author

potentiallly a duplicate of #254

@sydney-runkle sydney-runkle added this to the v2.6.0 milestone Apr 19, 2024
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

Successfully merging a pull request may close this issue.

2 participants