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

fix: Make dontAnimate optional in CarouselRef interface #28090

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

jarretmoses
Copy link
Contributor

@jarretmoses jarretmoses commented Nov 30, 2020

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

v4.8.6 introduced a new CarouselRef type which is great but it did not correctly allow the dontAnimate argument of the goTo method to be optional which according to the source code it is. This just makes the argument optional.

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@jarretmoses jarretmoses changed the title [MINOR] make dontAnimate optional in interface [MINOR] make dontAnimate optional in CarouselRef interface Nov 30, 2020
@jarretmoses jarretmoses changed the title [MINOR] make dontAnimate optional in CarouselRef interface [MINOR] Make dontAnimate optional in CarouselRef interface Nov 30, 2020
@ant-design-bot
Copy link
Contributor

ant-design-bot commented Nov 30, 2020

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 30, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 06ebad1:

Sandbox Source
antd reproduction template Configuration

@codecov
Copy link

codecov bot commented Nov 30, 2020

Codecov Report

Merging #28090 (06ebad1) into master (682b55d) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master    #28090   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          393       393           
  Lines         7371      7371           
  Branches      2112      2112           
=========================================
  Hits          7371      7371           
Impacted Files Coverage Δ
components/carousel/index.tsx 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 682b55d...06ebad1. Read the comment docs.

@jarretmoses jarretmoses changed the title [MINOR] Make dontAnimate optional in CarouselRef interface fix: Make dontAnimate optional in CarouselRef interface Nov 30, 2020
@eugene-matvejev
Copy link
Contributor

👍

@afc163 afc163 merged commit 4fad2ef into ant-design:master Dec 1, 2020
marianayap added a commit to marianayap/ant-design that referenced this pull request Dec 2, 2020
* fix: update CarouselRef goTo args (ant-design#28090)

* chore: 🆙 upgrade react 17 (ant-design#27268)

ant-design#26136

* fix BUNDLESIZE_GITHUB_TOKEN

* docs: supplement Form.List errors (ant-design#28117)

* docs: set image preview false in placeholder demo (ant-design#28140)

* docs(📖): update v4 migration about less variables change

close ant-design#28141

* test: skip List loading demo (ant-design#28133)

* fix: TextArea showCount style while using with Form (ant-design#28130)

* chore: optimize useModal performance - Do not trigger rerender of parent component (ant-design#28122)

* fix: Add type of initialValue prop to Form.List (ant-design#28153)

* fix: Add type of initialValue prop to Form.List

* Update index.zh-CN.md

* Update index.en-US.md

* fix(Tree): fix tree drop indicator default direction (ant-design#28150)

Co-authored-by: Jarret Moses <jarret.moses@gmail.com>
Co-authored-by: Tom Xu <ycxzhkx@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: Liming Jin <jinliming2@gmail.com>
Co-authored-by: stygian-desolator <73412177+stygian-desolator@users.noreply.github.com>
Co-authored-by: 骗你是小猫咪 <darryshaw@gmail.com>
Co-authored-by: einq7 <50612752+AlanCutFlim@users.noreply.github.com>
Co-authored-by: Elaina Cherudim <shr9192@gmail.com>
Co-authored-by: Debiancc <never.be.evil.debian@gmail.com>
Co-authored-by: Jingsong Gao <kingsongao1221@gmail.com>
@jarretmoses jarretmoses deleted the fix-carousel-ref branch December 3, 2020 06:51
@marianayap marianayap mentioned this pull request Dec 3, 2020
@ycjcl868 ycjcl868 mentioned this pull request Dec 6, 2020
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 this pull request may close these issues.

4 participants