-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix(module:select): fix clearing behavior, reduce ValueChanged triggered, change value after datasource changes, follow the datasource element order #1886
Conversation
…er (ant-design-blazor#1263) * 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>
…esign-blazor#1250) * feat(Alert): added alert loop component * fix: move cmp into main * feat: add parameters for looping text * feat: add new messages loop * fix: create new internal looptext cmp * doc: add demo * doc: add demo markdown * doc: update alert api * doc: update cn docs * fix: add missing dependency * fix: update param name * impleement loop text with css * fix the document Co-authored-by: James Yeung <shunjiey@hotmail.com>
…azor#1310) feat(module:table): add support for Display attribute Display attribute is widely used to specify display text for entity properties. Table component should get column names from Display attribute instances. Closes ant-design-blazor#1278
* test: change folder structure and add new TestKit csproj for public testing of AntDesign-based applications * docs: added CN and EN docs about TestKit * fix doc translate * change the directory structure Co-authored-by: Patryk Grzelak <pgrzelak@mutate.app> Co-authored-by: James Yeung <shunjiey@hotmail.com>
* fix(module: dropdown): default PlacementType is incorrect in RTL mode * fix(module: datepicker): not correct in RTL mode * fix(module: datepicker): styles is incorrect when switch to LTR from RTL Co-authored-by: James Yeung <shunjiey@hotmail.com>
…n-blazor#1309) * feat(module:select): allow overlay to match item width * fix(module:select): resize selectbox on window resize * docs(module:select): add new parameters * fix(module:select): add DropdownMatchSelectWidth & DropdownMaxWidth * fix(module:select): apply same layout as antD apply same behavior as antD for backspace split code to default/multiple&tags always focus on input for search-able handle overflow & ellipsis for to long items rendering optimization for SelectContent * fix(module:select): backspace functionality limit
…or#1322) Co-authored-by: James Yeung <shunjiey@hotmail.com>
* fix(module: table): ExpandableRow not working with ActionColumn ant-design-blazor#1284 (ant-design-blazor#1285) * (fix) Table ExpandableRow not working with ActionColumn ant-design-blazor#1284 * Add Tree Button Expand on Action Columm. Check the position of Selection Column when calculate the position for expand button on tree mode and expand mode. * fix(module: rate): Value has priority over DefaultValue (ant-design-blazor#1303) * chore: add GitHub Actions for auto preview (ant-design-blazor#1205) * chore: add github actions for auto preview * fix setup job * chore: add GitHub Actions for auto preview (ant-design-blazor#1205) * fix(module:rate): prevent reset to default value Co-authored-by: James Yeung <shunjiey@hotmail.com> * feat(module: form): Add LabelTemplate for FormItem (ant-design-blazor#1293) Co-authored-by: Leishi <lluo@octet.com> * fix(module: table): fix DataIndex Column with incorrect sorting and filter (ant-design-blazor#1295) * refactor(module: table): Unify the behavior of Field and DataIndex * fix(module: table): Fix DataIndex Column doesn't refresh * doc(module: table): add DataIndex column filter demo * doc(module: table): fix Blazor table Co-authored-by: James Yeung <shunjiey@hotmail.com> * fix(module: datepicker): DatePicker DisabledDate works incorect (ant-design-blazor#1298) * fix(module: datepicker): DatePicker DisabledDate works incorect * test(module: dateHelperTests): modify test case Co-authored-by: James Yeung <shunjiey@hotmail.com> * fix(module: upload): Upload list update fix (ant-design-blazor#1301) * chore: add GitHub Actions for auto preview (ant-design-blazor#1205) * chore: add github actions for auto preview * fix setup job * chore: add GitHub Actions for auto preview (ant-design-blazor#1205) * fix(module:upload): file list update * fix(module:upload): typed args for file upload * fix(module:upload): delete button remove from picture-card Co-authored-by: James Yeung <shunjiey@hotmail.com> * fix(module: textarea): default to empty string (ant-design-blazor#1305) * chore: add GitHub Actions for auto preview (ant-design-blazor#1205) * chore: add github actions for auto preview * fix setup job * chore: add GitHub Actions for auto preview (ant-design-blazor#1205) * fix(module:textarea): add parameter DefaultToEmptyString * fix(module:textarea): occasional crashes of js in firefox * docs(module:input): added new param DefaultToEmptyString Co-authored-by: James Yeung <shunjiey@hotmail.com> * fix(module: grid): missing flex and wrap style (ant-design-blazor#1296) * fix(module: grid): missing flex style * remove the old md file * fix demos * fix build error * fix no warp class * docs: add changelog in document (ant-design-blazor#1306) * fix(module: select): load icon for multiple mode & value reload on delay (ant-design-blazor#1307) * chore: add GitHub Actions for auto preview (ant-design-blazor#1205) * chore: add github actions for auto preview * fix setup job * chore: add GitHub Actions for auto preview (ant-design-blazor#1205) * fix(module:select): add loading for multiple mode * fix(module:select): selected items duplication for multiple mode when values changed outside the component Co-authored-by: James Yeung <shunjiey@hotmail.com> * fix(module: table): perf optimization & data source change issue (ant-design-blazor#1304) * chore: add GitHub Actions for auto preview (ant-design-blazor#1205) * chore: add github actions for auto preview * fix setup job * chore: add GitHub Actions for auto preview (ant-design-blazor#1205) * fix(module:table): guard against false entries in _dataSourceCache * fix(module:table): perf - double to single render on datasource change * fix(module:table): perf optimization to avoid multiple renders Co-authored-by: James Yeung <shunjiey@hotmail.com> * fix(module: select): propagation on item remove (ant-design-blazor#1308) * fix(module: table): fix table re-render when ScrollX is set (ant-design-blazor#1311) * docs(module: table): fix RouterPagging demo (ant-design-blazor#1313) * chagnelog 0.7.4 (ant-design-blazor#1321) Co-authored-by: Magehernan <magehernan@gmail.com> Co-authored-by: Andrzej Bakun <andrzej@neelyc.com.cy> Co-authored-by: ldsenow <ldsenow@gmail.com> Co-authored-by: Leishi <lluo@octet.com> Co-authored-by: Zonciu Liang <zonciu@zonciu.com> Co-authored-by: 笨木头 <musicvs@163.com>
…nt-design-blazor#1325) * feat(module: pagination): add TotalBoundaryShowSizeChanger * docs(module: pagination): update API Co-authored-by: James Yeung <shunjiey@hotmail.com>
* feat(docs): change color dynamically * docs: dynamic primary color changing * fix file path * delete the script
* tablefilter-moreoptions * tablefilter-moreoptions * tablefilter-moreoptions * tablefilter-moreoptions * tablefilter-moreoptions * fix demo and docs Co-authored-by: James Yeung <shunjiey@hotmail.com>
…ant-design-blazor#1328) (ant-design-blazor#1336) * fix(module:result): modify status unsuccessfully after initialization(ant-design-blazor#1328) * fix(module:result): determine whether the Icon is empty string(ant-design-blazor#1328) * doc: add changeTheResult demo(ant-design-blazor#1328) * delete some lines
…zor#1338) * feat(module:select): add MaxTagTextLength, MaxTagCount & MaxTagPlaceHolder * feat(module:select): responsive maxTagCount using window.resize * docs(module:select): MaxTagCount functionality * fix docs Co-authored-by: ElderJames <shunjiey@hotmail.com>
…nt-design-blazor#1335) * fix(module: affix): affix to the viewport (ant-design-blazor#1327) * fix target to element * rename to target selector Co-authored-by: ElderJames <shunjiey@hotmail.com>
…nt-design-blazor#1859) * Setup breadcrumb dropdown * Setup breadcrumb href * fix dropdown style * fix dropdown trigger class * fix tests Co-authored-by: James Yeung <shunjiey@hotmail.com>
…ign-blazor#1883) Fixed an issue where a table would not automatically load after initialization when an ActionColumn was used.
…the trigger button (ant-design-blazor#1838) * fix: second opening of focus in modal fails if DestroyOnClose is false * fix: confirm cannot get focus element * fix: set ConfirmAutoFocusButton is OK * fix: module ImagePreview cannot close on second click * fix: blur active element when comfirm focus element is disabled
Codecov Report
@@ Coverage Diff @@
## master #1886 +/- ##
===========================================
+ Coverage 0.00% 23.69% +23.69%
===========================================
Files 479 496 +17
Lines 31330 23360 -7970
Branches 0 122 +122
===========================================
+ Hits 0 5535 +5535
+ Misses 31330 17822 -13508
- Partials 0 3 +3
Continue to review full report at Codecov.
|
…oesn't change after datasoure changes
…ign-blazor into FixSelectClear
To always follow the order of elements in the datasource, I clear the |
I agree with you that with larger number of elements in the select, current approach may impact the performance. Exposing a parameter (especially primitive boolean) gives a flexibility in opposition to a very opinionated solution. I cannot really see any harm in adding the suggested parameter. I am therefore voting in favor of |
cf15ee2
to
da1f573
Compare
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
When a
Select
component:1. has
DefaultActiveFirstOption
orDefaultValue
attribute2. inital value is not
null
Then clearing is not not working as expected. When the first time clear, the selected value is set to
DefaultValue
/first option valuecode:
code:
code:
📝 Changelog
☑️ Self Check before Merge