We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b18e37e commit fe51703Copy full SHA for fe51703
src/wrappers/wrapper.js
@@ -77,8 +77,7 @@ export default class Wrapper implements BaseWrapper {
77
throwError('wrapper.hasClass() must be passed a string')
78
}
79
80
- return !!(this.element &&
81
- this.element.className.split(' ').indexOf(className) !== -1)
+ return !!(this.element && this.element.classList.contains(className))
82
83
84
/**
0 commit comments