react-mentions 4.0.0 → 4.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.
@@ -1057,11 +1057,11 @@ function (_Component) {
|
|
1057
1057
|
return null;
|
1058
1058
|
}
|
1059
1059
|
|
1060
|
-
return React__default.createElement("div", _extends({}, useStyles.inline(
|
1061
|
-
position: position,
|
1060
|
+
return React__default.createElement("div", _extends({}, useStyles.inline({
|
1061
|
+
position: position || 'absolute',
|
1062
1062
|
left: left,
|
1063
1063
|
top: top
|
1064
|
-
}), {
|
1064
|
+
}, style), {
|
1065
1065
|
onMouseDown: onMouseDown,
|
1066
1066
|
ref: containerRef
|
1067
1067
|
}), React__default.createElement("ul", _extends({
|
@@ -1158,7 +1158,6 @@ var getID = function getID(suggestion) {
|
|
1158
1158
|
};
|
1159
1159
|
|
1160
1160
|
var styled$2 = createDefaultStyle({
|
1161
|
-
position: 'absolute',
|
1162
1161
|
zIndex: 1,
|
1163
1162
|
backgroundColor: 'white',
|
1164
1163
|
marginTop: 14,
|
@@ -638,11 +638,11 @@ var SuggestionsOverlay = function(_Component) {
|
|
638
638
|
key: "render",
|
639
639
|
value: function() {
|
640
640
|
var _this$props = this.props, suggestions = _this$props.suggestions, isLoading = _this$props.isLoading, style = _this$props.style, onMouseDown = _this$props.onMouseDown, containerRef = _this$props.containerRef, position = _this$props.position, left = _this$props.left, top = _this$props.top;
|
641
|
-
return 0 !== countSuggestions(suggestions) || isLoading ? React__default.createElement("div", _extends({}, useStyles.inline(
|
642
|
-
position: position,
|
641
|
+
return 0 !== countSuggestions(suggestions) || isLoading ? React__default.createElement("div", _extends({}, useStyles.inline({
|
642
|
+
position: position || "absolute",
|
643
643
|
left: left,
|
644
644
|
top: top
|
645
|
-
}), {
|
645
|
+
}, style), {
|
646
646
|
onMouseDown: onMouseDown,
|
647
647
|
ref: containerRef
|
648
648
|
}), React__default.createElement("ul", _extends({
|
@@ -716,7 +716,6 @@ _defineProperty(SuggestionsOverlay, "propTypes", {
|
|
716
716
|
var getID = function(suggestion) {
|
717
717
|
return suggestion instanceof String ? suggestion : suggestion.id;
|
718
718
|
}, styled$2 = createDefaultStyle({
|
719
|
-
position: "absolute",
|
720
719
|
zIndex: 1,
|
721
720
|
backgroundColor: "white",
|
722
721
|
marginTop: 14,
|
@@ -1049,11 +1049,11 @@ function (_Component) {
|
|
1049
1049
|
return null;
|
1050
1050
|
}
|
1051
1051
|
|
1052
|
-
return React.createElement("div", _extends({}, inline(
|
1053
|
-
position: position,
|
1052
|
+
return React.createElement("div", _extends({}, inline({
|
1053
|
+
position: position || 'absolute',
|
1054
1054
|
left: left,
|
1055
1055
|
top: top
|
1056
|
-
}), {
|
1056
|
+
}, style), {
|
1057
1057
|
onMouseDown: onMouseDown,
|
1058
1058
|
ref: containerRef
|
1059
1059
|
}), React.createElement("ul", _extends({
|
@@ -1150,7 +1150,6 @@ var getID = function getID(suggestion) {
|
|
1150
1150
|
};
|
1151
1151
|
|
1152
1152
|
var styled$2 = createDefaultStyle({
|
1153
|
-
position: 'absolute',
|
1154
1153
|
zIndex: 1,
|
1155
1154
|
backgroundColor: 'white',
|
1156
1155
|
marginTop: 14,
|