palantir/blueprint

overflow text in NumericInput of non-active Tab inside Tabs

Open

#4,107 创建于 2020年5月2日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)TypeScript (20,263 star) (2,167 fork)batch import
P3Package: coreType: bughelp wanted

描述

Environment

  • Package version(s): 3.25.0
  • Browser and OS versions: chrome 79.0.3945.79

If possible, link to a minimal repro: sandbox https://codesandbox.io/s/overflow-text-of-numeric-input-in-blueprint-js-5xv5g?file=/src/App.js

Steps to reproduce

  1. switch to none active tab
  2. type many 0s

Actual behavior

image

get overflow text that covers the button on the right side(in active tab, it renders fine, but in non-active tab, overflow text happens.)

Expected behavior

text should not be overflowed in both active/non-active tab

Possible solution

padding-right of input inside the NumericInput is always 0px in non-active tab, but 30px in active tab, dont know what is going on :(

贡献者指南

overflow text in NumericInput of non-active Tab inside Tabs · palantir/blueprint#4107 | Good First Issue