@bigbinary/neeto-tags-frontend 0.0.49 → 0.0.50

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/dist/index.js CHANGED
@@ -7030,6 +7030,7 @@ var ManageTags = function ManageTags(_ref) {
7030
7030
 
7031
7031
  var isEdit = type === PANE_TYPES.EDIT;
7032
7032
  var initValues = isEdit ? tag : INITIAL_TAG_VALUES;
7033
+ var inputRef = useRef(null);
7033
7034
 
7034
7035
  var onPaneClose = function onPaneClose() {
7035
7036
  setHasSubmitted(false);
@@ -7049,6 +7050,7 @@ var ManageTags = function ManageTags(_ref) {
7049
7050
  isSubmitting = _useTagsForm.isSubmitting;
7050
7051
 
7051
7052
  return /*#__PURE__*/React.createElement(Pane, {
7053
+ initialFocusRef: inputRef,
7052
7054
  isOpen: !!type,
7053
7055
  onClose: onPaneClose
7054
7056
  }, /*#__PURE__*/React.createElement(Pane.Header, null, /*#__PURE__*/React.createElement(Typography, {
@@ -7072,12 +7074,12 @@ var ManageTags = function ManageTags(_ref) {
7072
7074
  className: "neeto-ui-flex neeto-ui-w-full neeto-ui-flex-col"
7073
7075
  }, /*#__PURE__*/React.createElement(Input, {
7074
7076
  required: true,
7075
- autoFocus: true,
7076
7077
  name: "name",
7077
7078
  label: "".concat(t("tag"), " ").concat(t("name").toLocaleLowerCase()),
7078
7079
  "data-cy": "tag-name-text-field",
7079
7080
  maxLength: 50,
7080
- className: "neeto-ui-mb-4"
7081
+ className: "neeto-ui-mb-4",
7082
+ ref: inputRef
7081
7083
  }), /*#__PURE__*/React.createElement(Textarea, {
7082
7084
  name: "description",
7083
7085
  label: t("description"),