mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-04-27 21:07:43 +08:00
docs: remove whitespace around selection (#810)
This commit is contained in:
committed by
Satyajit Sahoo
parent
cf79f65c42
commit
f79c00d835
@@ -102,7 +102,7 @@ export default class IconsList extends React.Component<{}, State> {
|
||||
_handleIconClick = (e: SyntheticEvent<HTMLButtonElement>) => {
|
||||
const range = document.createRange();
|
||||
|
||||
range.selectNode(e.currentTarget.childNodes[1]);
|
||||
range.selectNode(e.currentTarget.childNodes[1].childNodes[0]);
|
||||
|
||||
window.getSelection().removeAllRanges();
|
||||
window.getSelection().addRange(range);
|
||||
|
||||
Reference in New Issue
Block a user