Fix linter warnings in TextField.js