ember-velcro 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/addon/modifiers/velcro.js +8 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [1.0.1](https://github.com/camskene/ember-velcro/compare/v1.0.0...v1.0.1) (2022-10-02)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* **modifier:** support SVGElement ([abab33b](https://github.com/camskene/ember-velcro/commit/abab33be4b70bacec9823ecc0ee93531a6d65331))
|
7
|
+
|
1
8
|
# 1.0.0 (2022-09-27)
|
2
9
|
|
3
10
|
|
@@ -23,9 +23,15 @@ export default class VelcroModifier extends Modifier {
|
|
23
23
|
referenceElement = document.querySelector(referenceElement);
|
24
24
|
}
|
25
25
|
|
26
|
-
assert(
|
26
|
+
assert(
|
27
|
+
'no reference element defined',
|
28
|
+
referenceElement instanceof HTMLElement || referenceElement instanceof SVGElement
|
29
|
+
);
|
27
30
|
|
28
|
-
assert(
|
31
|
+
assert(
|
32
|
+
'no floating element defined',
|
33
|
+
floatingElement instanceof HTMLElement || referenceElement instanceof SVGElement
|
34
|
+
);
|
29
35
|
|
30
36
|
assert(
|
31
37
|
'reference and floating elements cannot be the same element',
|