baseui 0.0.0-next-06a5f2e → 0.0.0-next-e8c3307

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.
@@ -144,7 +144,9 @@ class EmoticonRating extends React.Component {
144
144
  return /*#__PURE__*/React.createElement(Root, _extends({
145
145
  "data-baseweb": "emoticon-rating",
146
146
  role: "radiogroup",
147
- onBlur: () => this.updatePreview(undefined),
147
+ onBlur: e => {
148
+ if (!e.currentTarget.contains(e.relatedTarget)) this.updatePreview(undefined);
149
+ },
148
150
  onMouseLeave: () => this.updatePreview(undefined)
149
151
  }, rootProps), this.renderRatingContents());
150
152
  }
@@ -147,7 +147,9 @@ class StarRating extends React.Component {
147
147
  return /*#__PURE__*/React.createElement(Root, _extends({
148
148
  "data-baseweb": "star-rating",
149
149
  role: "radiogroup",
150
- onBlur: () => this.updatePreview(undefined),
150
+ onBlur: e => {
151
+ if (!e.currentTarget.contains(e.relatedTarget)) this.updatePreview(undefined);
152
+ },
151
153
  onMouseLeave: () => this.updatePreview(undefined)
152
154
  }, rootProps), this.renderRatingContents());
153
155
  }
@@ -213,8 +213,8 @@ var EmoticonRating = /*#__PURE__*/function (_React$Component) {
213
213
  return /*#__PURE__*/React.createElement(Root, _extends({
214
214
  "data-baseweb": "emoticon-rating",
215
215
  role: "radiogroup",
216
- onBlur: function onBlur() {
217
- return _this2.updatePreview(undefined);
216
+ onBlur: function onBlur(e) {
217
+ if (!e.currentTarget.contains(e.relatedTarget)) _this2.updatePreview(undefined);
218
218
  },
219
219
  onMouseLeave: function onMouseLeave() {
220
220
  return _this2.updatePreview(undefined);
@@ -216,8 +216,8 @@ var StarRating = /*#__PURE__*/function (_React$Component) {
216
216
  return /*#__PURE__*/React.createElement(Root, _extends({
217
217
  "data-baseweb": "star-rating",
218
218
  role: "radiogroup",
219
- onBlur: function onBlur() {
220
- return _this2.updatePreview(undefined);
219
+ onBlur: function onBlur(e) {
220
+ if (!e.currentTarget.contains(e.relatedTarget)) _this2.updatePreview(undefined);
221
221
  },
222
222
  onMouseLeave: function onMouseLeave() {
223
223
  return _this2.updatePreview(undefined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baseui",
3
- "version": "0.0.0-next-06a5f2e",
3
+ "version": "0.0.0-next-e8c3307",
4
4
  "description": "A React Component library implementing the Base design language",
5
5
  "keywords": [
6
6
  "react",
@@ -222,8 +222,8 @@ var EmoticonRating = /*#__PURE__*/function (_React$Component) {
222
222
  return /*#__PURE__*/React.createElement(Root, _extends({
223
223
  "data-baseweb": "emoticon-rating",
224
224
  role: "radiogroup",
225
- onBlur: function onBlur() {
226
- return _this2.updatePreview(undefined);
225
+ onBlur: function onBlur(e) {
226
+ if (!e.currentTarget.contains(e.relatedTarget)) _this2.updatePreview(undefined);
227
227
  },
228
228
  onMouseLeave: function onMouseLeave() {
229
229
  return _this2.updatePreview(undefined);
@@ -135,7 +135,10 @@ class EmoticonRating extends React.Component<
135
135
  <Root
136
136
  data-baseweb="emoticon-rating"
137
137
  role="radiogroup"
138
- onBlur={() => this.updatePreview(undefined)}
138
+ onBlur={e => {
139
+ if (!e.currentTarget.contains(e.relatedTarget))
140
+ this.updatePreview(undefined);
141
+ }}
139
142
  onMouseLeave={() => this.updatePreview(undefined)}
140
143
  {...rootProps}
141
144
  >
@@ -225,8 +225,8 @@ var StarRating = /*#__PURE__*/function (_React$Component) {
225
225
  return /*#__PURE__*/React.createElement(Root, _extends({
226
226
  "data-baseweb": "star-rating",
227
227
  role: "radiogroup",
228
- onBlur: function onBlur() {
229
- return _this2.updatePreview(undefined);
228
+ onBlur: function onBlur(e) {
229
+ if (!e.currentTarget.contains(e.relatedTarget)) _this2.updatePreview(undefined);
230
230
  },
231
231
  onMouseLeave: function onMouseLeave() {
232
232
  return _this2.updatePreview(undefined);
@@ -133,7 +133,10 @@ class StarRating extends React.Component<StarRatingPropsT, RatingStateT> {
133
133
  <Root
134
134
  data-baseweb="star-rating"
135
135
  role="radiogroup"
136
- onBlur={() => this.updatePreview(undefined)}
136
+ onBlur={e => {
137
+ if (!e.currentTarget.contains(e.relatedTarget))
138
+ this.updatePreview(undefined);
139
+ }}
137
140
  onMouseLeave={() => this.updatePreview(undefined)}
138
141
  {...rootProps}
139
142
  >