fix(directive): fix bug with defaultValue