From 00d5a8dc3983b1b5911c7279394ebdac564a798e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 24 Aug 2018 17:27:09 +0300 Subject: scroll fixes for mobile --- vnext/src/components/__tests__/MessageInput-test.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vnext/src/components/__tests__') diff --git a/vnext/src/components/__tests__/MessageInput-test.js b/vnext/src/components/__tests__/MessageInput-test.js index 65ec383d..1cf89ebf 100644 --- a/vnext/src/components/__tests__/MessageInput-test.js +++ b/vnext/src/components/__tests__/MessageInput-test.js @@ -14,6 +14,14 @@ const testMessage = { timestamp: new Date().toISOString() }; +window.matchMedia = window.matchMedia || function() { + return { + matches : false, + addListener : function() {}, + removeListener: function() {} + }; +}; + it('Gives immediate focus on to textarea on load', () => { const wrapper = mount( { }} />); const textareaRef = wrapper.instance().textarea; -- cgit v1.2.3