fix cursor position for textarea
use caret component to position cursor