Ajaxy / telegram-tt

Telegram Web A, GPL v3
https://web.telegram.org/a
GNU General Public License v3.0
2.39k stars 520 forks source link

when you press the erase button and there are no characters in the input field, an error occurs, you need to add a check for 0 characters #363

Open Akbarkhon-Avazkhonov opened 6 months ago

Akbarkhon-Avazkhonov commented 6 months ago

ERROR Cannot read properties of null (reading 'lastChild') TypeError: Cannot read properties of null (reading 'lastChild') at deleteLastCharacterOutsideSelection (http://localhost:1234/src_components_common_Composer_tsx-src_components_common_LinkField_tsx-src_components_common_-cc1dfa.361fb859cce7084cbc10.js:22106:15) at Object.current (http://localhost:1234/src_components_common_Composer_tsx-src_components_common_LinkField_tsx-src_components_common_-cc1dfa.361fb859cce7084cbc10.js:2124:99) at http://localhost:1234/main.5816e941a4efc6c56a26.js:19044:98 at Object.current (http://localhost:1234/main.5816e941a4efc6c56a26.js:5110:7) at http://localhost:1234/main.5816e941a4efc6c56a26.js:19044:98 at Object.current (http://localhost:1234/main.5816e941a4efc6c56a26.js:5124:7) at http://localhost:1234/main.5816e941a4efc6c56a26.js:19044:98 at HTMLDocument.handleEvent (http://localhost:1234/main.5816e941a4efc6c56a26.js:20464:9)

Screenshot 2024-05-09 163451