xorcery / TableEditor

11 stars 8 forks source link

Changing to multi-line inputs and back again render no fields #12

Open bjarnef opened 8 years ago

bjarnef commented 8 years ago

By default the table editor renders input <input type="text" />, but when check "Use Multi-line Inputs" in config it renders <textarea>.

However when I uncheck the checkbox again, no fields is rendered.

image

bjarnef commented 8 years ago

Adding the line in controller seems to fix it.

$scope.model.config.multiLineInputs = $scope.model.config.multiLineInputs === "1" ? true : false;