directual-web-components-v2 3.11.339 → 3.11.340

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.
@@ -5297,8 +5297,8 @@ function JsonInput(_ref) {
5297
5297
  const adjustHeight = useCallback(() => {
5298
5298
  const el = textareaRef.current;
5299
5299
  if (!el || rows !== 'auto') return;
5300
- el.style.height = 'auto';
5301
- el.style.height = el.scrollHeight + 'px';
5300
+ el.style.minHeight = '0';
5301
+ el.style.minHeight = el.scrollHeight + 'px';
5302
5302
  }, [rows]);
5303
5303
  useEffect(() => {
5304
5304
  adjustHeight();
@@ -5480,20 +5480,20 @@ function JsonInput(_ref) {
5480
5480
  onKeyDown: handleKeyDown,
5481
5481
  value: value,
5482
5482
  placeholder: placeholder || ''
5483
- }), /*#__PURE__*/React.createElement("div", {
5484
- className: styles$4.json_toolbar
5485
- }, value && !disabled && !copy && /*#__PURE__*/React.createElement("div", {
5486
- className: styles$4.json_toolbar_btn + " icon icon-close",
5487
- title: "Clear",
5488
- onClick: handleClear
5489
- }), value && copy && /*#__PURE__*/React.createElement("div", {
5490
- className: styles$4.json_toolbar_btn + " icon icon-copy",
5491
- title: "Copy",
5492
- onClick: handleCopy
5493
5483
  }), value && !disabled && /*#__PURE__*/React.createElement("div", {
5484
+ className: styles$4.json_toolbar
5485
+ }, /*#__PURE__*/React.createElement("div", {
5494
5486
  className: styles$4.json_toolbar_btn + " icon icon-code",
5495
5487
  title: "Format JSON",
5496
5488
  onClick: handleFormat
5489
+ }), copy && /*#__PURE__*/React.createElement("div", {
5490
+ className: styles$4.json_toolbar_btn + " icon icon-copy",
5491
+ title: "Copy",
5492
+ onClick: handleCopy
5493
+ }), /*#__PURE__*/React.createElement("div", {
5494
+ className: styles$4.json_toolbar_btn + " icon icon-close",
5495
+ title: "Clear",
5496
+ onClick: handleClear
5497
5497
  })), warningMsg.msg && /*#__PURE__*/React.createElement("div", {
5498
5498
  className: styles$4.status + " " + styles$4[warningMsg.type]
5499
5499
  }, warningMsg.msg));