🤖 Merge PR #44681 update(bootstrap): 4.5 minor version by @peterblazejewicz

* update(bootstrap): 4.5 minor version

- correct ScrollSpy.target definition
- minor version bump

see:
22f75ca2e3
https://github.com/twbs/bootstrap/releases/tag/v4.5.0 (JavaScript para)

Thanks!

* Update types/bootstrap/bootstrap-tests.ts

thx to @denisname for spotting this!

Co-authored-by: denisname <denisname@users.noreply.github.com>

* Update types/bootstrap/index.d.ts

thx to @denisname for suggestion!

Co-authored-by: denisname <denisname@users.noreply.github.com>

Co-authored-by: denisname <denisname@users.noreply.github.com>
This commit is contained in:
Piotr Błażejewicz (Peter Blazejewicz) 2020-05-20 09:39:19 +02:00 committed by GitHub
parent 5cbafd3e78
commit 3c19dc1b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -244,6 +244,10 @@ $("#scrollspy").scrollspy({
target: document.getElementById("navbar-example2") as HTMLElement
});
$("#scrollspy").scrollspy({
target: $("#navbar-example2"),
});
$("#scrollspy").scrollspy({
method: "position"
});

View File

@ -1,4 +1,4 @@
// Type definitions for Bootstrap 4.3
// Type definitions for Bootstrap 4.5
// Project: https://github.com/twbs/bootstrap/, https://getbootstrap.com
// Definitions by: denisname <https://github.com/denisname>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
@ -223,7 +223,7 @@ export interface ScrollspyOption {
*
* @default ""
*/
target?: string | Element;
target?: string | JQuery<Element> | Element;
}
export interface ToastOption {