Cannot create file links in text area

Ok, I just found out that this is caused by a self-written plugin.

I have a method that is supposed to turn off the counter on text fields and text area fields off by default:

Kirby::plugin('trych/field-defaults', [
  'fields' => [

    'text' => [
      'extends' => 'text',
      'props' => [
        'counter' => fn($value = false) => $value
      ]
    ],

    'textarea' => [
      'extends' => 'text',
      'props' => [
        'buttons' => fn($value = ['headlines', 'italic', '|', 'link', 'email', 'file', '|', 'ul', 'ol']) => $value,
        'counter' => fn($value = false) => $value
      ]
    ],

  ]

]);

When I comment out the textarea part, then the file linking works again.
However, then I am now wondering, how can I change the fields default without destroying its behavior?

I posted about a very similar issue earlier today: `now` default stops working when extending date field - #2 by trych

The code for setting these defaults is orginally by @rasteiner from this thread: Cannot extend existing field - #3 by trych

Thanks!