File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -150,20 +150,11 @@ function floatingUIposition(step, shouldCenter) {
150
150
*/
151
151
function placeArrow ( el , middlewareData ) {
152
152
const arrowEl = el . querySelector ( '.shepherd-arrow' ) ;
153
- if ( arrowEl ) {
154
- let left , top , right , bottom ;
155
-
156
- if ( middlewareData . arrow ) {
157
- const { x : arrowX , y : arrowY } = middlewareData . arrow ;
158
- left = arrowX != null ? `${ arrowX } px` : '' ;
159
- top = arrowY != null ? `${ arrowY } px` : '' ;
160
- }
161
-
153
+ if ( arrowEl && middlewareData . arrow ) {
154
+ const { x : arrowX , y : arrowY } = middlewareData . arrow ;
162
155
Object . assign ( arrowEl . style , {
163
- left,
164
- top,
165
- right,
166
- bottom
156
+ left : arrowX != null ? `${ arrowX } px` : '' ,
157
+ top : arrowY != null ? `${ arrowY } px` : ''
167
158
} ) ;
168
159
}
169
160
}
You can’t perform that action at this time.
0 commit comments