Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Commit 2d14096

Browse files
Merge pull request #4 from fobaz/patch-1
Update stack.ts, fix null result for getCard
2 parents 7e2df42 + 3d36a98 commit 2d14096

File tree

1 file changed

+3
-1
lines changed
  • src/app/modules/ionic-swing/swing

1 file changed

+3
-1
lines changed

src/app/modules/ionic-swing/swing/stack.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ export const Stack = (config) => {
9999
*/
100100
stack.getCard = (element) => {
101101
const group = _.find(index, (i) => {
102-
return _.isEqual(i, element);
102+
if(element.isEqualNode(i.element)){
103+
return i;
104+
}
103105
});
104106

105107
if (group) {

0 commit comments

Comments
 (0)