r-dropdown-button
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -208,5 +208,5 @@ "use strict"; | ||
key: "getStyle", | ||
value: function getStyle(style) { | ||
value: function getStyle() { | ||
var rtl = this.context.rtl; | ||
return _jquery.default.extend({}, _defineProperty({ | ||
return _defineProperty({ | ||
position: 'absolute', | ||
@@ -216,3 +216,3 @@ zIndex: 1000, | ||
direction: rtl ? 'rtl' : 'ltr' | ||
}, rtl ? 'right' : 'left', 0), style); | ||
}, rtl ? 'right' : 'left', 0); | ||
} | ||
@@ -219,0 +219,0 @@ }, { |
{ | ||
"name": "r-dropdown-button", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -98,5 +98,5 @@ import React,{Component,Fragment,createRef,createContext} from 'react'; | ||
} | ||
getStyle(style){ | ||
getStyle(){ | ||
var {rtl} = this.context; | ||
return $.extend({},{ | ||
return { | ||
position: 'absolute', | ||
@@ -107,3 +107,3 @@ zIndex:1000, | ||
[rtl?'right':'left']:0, | ||
},style); | ||
}; | ||
} | ||
@@ -110,0 +110,0 @@ getBackDropStyle(){ |
26853