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

datepicker when click <> to switch to prev/next month, will cause form submit, that is unexpect #3772

Open
zitjubiz opened this issue Apr 2, 2024 · 0 comments

Comments

@zitjubiz
Copy link

zitjubiz commented Apr 2, 2024

Describe the bug

when datepicker in a form, when click <> to switch to prev/next month, will cause form submit, that is unexpect

Steps to reproduce (please include code)

<Form Model="@_selectEntity" OnFinish="OnFinish">
<Drawer Closable="true" Width="720" Visible="visible" OnClose="_=>Close()">
<DatePicker Picker="@DatePickerType.Date" Style="width:328px;" @bind-Value="@_selectEntity.ErrorDate" />
<Button Id="btnSave" Type="primary" HtmlType="submit" Disabled="isFinish">保存</Button>
<Button Id="btnDelete" danger Disabled="isFinish" OnClick="()=>ShowConfirm(_selectEntity.Id)">删除</Button>
</Drawer>
</Form>

Further technical details

  • AntDesign Nuget Package version 0.16.2
  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version VS2022
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