* Fix: Add `type="button"` to Drawer close button.
Without this close button triggers form submit if drawer is defined within form.
* Fix tests
---------
Co-authored-by: James Yeung <shunjiey@hotmail.com>
Co-authored-by: Dmitri Afanasjev <dafanasjev@microsoft.com>
* Drawer Tests
* Remove code that doesn't appear to be needed. If you set Placement to be null or empty the drawer closes with or without this code in place.
* Documentation update
* Doc update
* Docs update...including chinese
* feat(module:drawer): add property HeaderStyle to Drawer component
a property for modifying the style of the header in the drawer component
* feat(docs): add property HeaderStyle to Drawer api
Add HeaderStyle to DrawerOptions and update docs
* fix missing HeaderStyle for drawer servcie
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* perf: avoid memory leak #1834
Avoid memory leak by remove the exclusive parameter and logic in the code block on AddEventListener method in DomEventService class.
The following are the components affected:
components/affix/Affix.razor.cs
components/anchor/Anchor.razor.cs
components/carousel/Carousel.razor.cs
components/core/Component/Overlay/Overlay.razor.cs
components/core/Component/Overlay/OverlayTrigger.razor.cs
components/core/JsInterop/DomEventService.cs
components/descriptions/Descriptions.razor.cs
components/dropdown/DropdownButton.cs
components/grid/Row.razor.cs
components/input/Input.cs
components/input/TextArea.razor.cs
components/layout/Sider.razor.cs
components/list/ListItem.razor.cs
components/select/Select.razor.cs
components/select/internal/SelectContent.razor.cs
components/slider/Slider.razor.cs
components/table/Table.razor.cs
components/tabs/Tabs.razor.cs
* fix override AddEventListener method in AntDesign.TestKit project
* add register/remove event listerner for exclusive use in DomEventService class
* move _dotNetObjects to DomEventListerner class/service, so that users not required to maintain it in each component.
* * move share/reuse dom event listerner methods to DomEventListerner class
* remove method 'AddEventListener' that no longer exists in DomEventService class in AntDesign.TestKit project
* * change the component referring to an IDomEventListerner interface instead of a concrete class,
so that the component can be tested via a mock TestDomEventListerner.
* introduce DisposeShared and Dispose method in DomEventListerner to ease user remove callback from DomEventListerner
* register IDomEventListerner into DI container instead of create manually
* fix FormatKey
* fix FormatKey
* fix tests
* fix test
* fix test
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* fix: unexpected behavior of Drawer(#1749)
1. The scroll bar of the body is enabled after closing one of the
multiple drawers
2. Bad parameter NoAnimation.
* chore: remove debug output
* chore: add comments for ComponentStatus
* fix: different behaviors in WASM and Server modes
* chore: remove debug output
* fix(module: drawer): OffsetX and offsetY do not work (#1435)
* docs: demo update
* fix: Placement is switched to the relative direction, the animation appears
* fix: the bug of closing animation missed
* fix: incorrect animation
* fix: different behaviors in WASM and Server side
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* refactor: support to use the same template for confirm and modal
* refactor: support to use the same template for drawer
* refactor: separate interface IOkCancelRef
* chore: modify EventUtil class summary
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* feat: drawer support return value
* feat: drawer supports return value
* feat: drawer support return value
* feat: drawer support return value
* docs: avoid duplicate names
* fix: demo
Co-authored-by: ElderJames <shunjiey@hotmail.com>
* fix: drawer animation transition
* fix: when modal is opening, body scroll bar dispaly
* fix: scroll bar is not hidden when drawer is displayed
* fix: rebase conflict
Co-authored-by: ElderJames <shunjiey@hotmail.com>