From f50af5c62dbf0437ea537256b99ea3e189f1b9a3 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Tue, 19 Feb 2019 16:24:47 +0800 Subject: [PATCH] fix: onChange is more welcomed than onInput --- src/components/SettingsBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SettingsBar.tsx b/src/components/SettingsBar.tsx index 83d9977..88b00fa 100644 --- a/src/components/SettingsBar.tsx +++ b/src/components/SettingsBar.tsx @@ -225,7 +225,7 @@ export default class SettingsBar extends React.PureComponent { disabled={hasAccessToken} placeholder={hasAccessToken ? 'Your token is saved' : 'Input your token here'} value={accessToken} - onInput={this.onInputAccessToken} + onChange={this.onInputAccessToken} /> {hasAccessToken && !accessToken ? (