Skip to content

Commit bb45f76

Browse files
authored
fix(Waterfall): throw exception when click item (#5808)
1 parent d88b5a2 commit bb45f76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Data from "../../modules/data.js"
22
import EventHandler from "../../modules/event-handler.js"
3-
import { debounce } from "../../modules/utility.js"
43

54
const cal = (el, imgWidth) => {
65
const containerWidth = el.offsetWidth;
@@ -56,7 +55,7 @@ export function init(id, invoke, method) {
5655
EventHandler.on(container, 'click', '.bb-waterfall-item', e => {
5756
const element = e.delegateTarget;
5857
const item = getWaterfallItem(element);
59-
invokeMethodAsync('OnClickItem', item);
58+
invoke.invokeMethodAsync('OnClickItem', item);
6059
});
6160
EventHandler.on(window, 'scroll', () => {
6261
const offsetHeight = (window.innerHeight || document.documentElement.clientHeight) + document.documentElement.scrollTop;

0 commit comments

Comments
 (0)