     }
 
     @objc func textDidChange() {
+        self.updateBoundsToFitSize()
         self.updatePlaceholderVisibility()
         self.scrollToCaret()
 

    }

    // MARK: - Private methods

    private func scrollToCaret() {
        if let textRange = self.selectedTextRange {


    private func commonInit() {
        NotificationCenter.default.addObserver(self, selector: #selector(ExpandableTextView.textDidChange), name: UITextView.textDidChangeNotification, object: self)
        self.updateBoundsToFitSize()
        self.configurePlaceholder()
        self.updatePlaceholderVisibility()
    }
