diff --git a/main.js b/main.js index d092ab1af..8a5af9b17 100644 --- a/main.js +++ b/main.js @@ -206,9 +206,11 @@ function captureClicks(window) { } const DEFAULT_WIDTH = 880; -const DEFAULT_HEIGHT = 720; +// add contact button needs to be visible (on HiDpi screens?) +// otherwise integration test fail +const DEFAULT_HEIGHT = 820; const MIN_WIDTH = 880; -const MIN_HEIGHT = 720; +const MIN_HEIGHT = 820; const BOUNDS_BUFFER = 100; function isVisible(window, bounds) { diff --git a/ts/components/session/SessionIdEditable.tsx b/ts/components/session/SessionIdEditable.tsx index dc4bab8bc..6fca9f63e 100644 --- a/ts/components/session/SessionIdEditable.tsx +++ b/ts/components/session/SessionIdEditable.tsx @@ -45,6 +45,7 @@ export class SessionIdEditable extends React.PureComponent { spellCheck={false} onKeyDown={this.handleKeyDown} onChange={this.handleChange} + onBlur={this.handleChange} value={value || text} maxLength={maxLength} /> diff --git a/ts/components/session/SessionInput.tsx b/ts/components/session/SessionInput.tsx index 11432e80a..edd8c64ed 100644 --- a/ts/components/session/SessionInput.tsx +++ b/ts/components/session/SessionInput.tsx @@ -61,6 +61,10 @@ export class SessionInput extends React.PureComponent { className={classNames( enableShowHide ? 'session-input-floating-label-show-hide' : '' )} + // just incase onChange isn't triggered + onBlur={e => { + this.updateInputValue(e); + }} onKeyPress={event => { event.persist(); if (event.key === 'Enter' && this.props.onEnterPressed) {