{"action":"reopened","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/3588","labels_url":"https://api.github.com/repos/kivy/kivy/issues/3588/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/3588/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/3588/events","html_url":"https://github.com/kivy/kivy/issues/3588","id":101731629,"number":3588,"title":"TextInput on_text fired on init","user":{"login":"dessant","id":7513068,"avatar_url":"https://avatars.githubusercontent.com/u/7513068?v=3","gravatar_id":"","url":"https://api.github.com/users/dessant","html_url":"https://github.com/dessant","followers_url":"https://api.github.com/users/dessant/followers","following_url":"https://api.github.com/users/dessant/following{/other_user}","gists_url":"https://api.github.com/users/dessant/gists{/gist_id}","starred_url":"https://api.github.com/users/dessant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dessant/subscriptions","organizations_url":"https://api.github.com/users/dessant/orgs","repos_url":"https://api.github.com/users/dessant/repos","events_url":"https://api.github.com/users/dessant/events{/privacy}","received_events_url":"https://api.github.com/users/dessant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-18T19:30:35Z","updated_at":"2015-08-20T18:59:54Z","closed_at":null,"body":"@kived looked into it:\r\n```\r\nkived: dessant: _refresh_text is triggered when the textinput is created, whether or not you set the text. this method creates a new list and assigns it to self._lines, which triggers an update to self.text\r\nkived: the default value for _lines is [], but _refresh_text will set it to [''] (for empty text)\r\n```\r\n\r\n```python\r\nfrom kivy.app import App\r\nfrom kivy.lang import Builder\r\n\r\nkv = \"\"\"\r\nTextInput:\r\n    on_text: print('text was set')\r\n\"\"\"\r\n\r\n\r\nclass TestApp(App):\r\n    def build(self):\r\n        return Builder.load_string(kv)\r\n\r\nif __name__ == '__main__':\r\n    TestApp().run()\r\n```"}}